This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
| import { RouterTestingModule } from '@angular/router/testing'; | |
| import { ActivatedRoute } from '@angular/router'; | |
| import { DemoComponent } from './demo.component'; | |
| import { of } from 'rxjs/observable/of'; | |
| import { NgModule } from '@angular/core'; | |
| @NgModule({ | |
| declarations: [DemoComponent], | |
| providers: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Subject } from 'rxjs/Subject'; | |
| import { TokenInfo } from './tokeninfo'; | |
| //import { Token } from './checktoken'; | |
| //import { Applist } from './applist'; | |
| //import { ApplistWithVersion } from './applistwithversion'; | |
| import { Injectable, Input } from '@angular/core'; | |
| import { Http } from '@angular/http'; | |
| import { ActivatedRoute } from '@angular/router'; | |
| import {Observable} from 'rxjs/Observable'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component, Inject, Injector} from '@angular/core'; | |
| import {serviceToken} from './app.module'; | |
| import {IService} from './iservice'; | |
| import {Service1Service} from './service1.service'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component, Injector} from '@angular/core'; | |
| import {serviceToken} from './app.module'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'rxjs/add/observable/from'; | |
| import {ApplicationRef, Component} from '@angular/core'; | |
| import {Observable} from 'rxjs/Observable'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NgModule, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; | |
| import { RouterModule } from '@angular/router'; | |
| import { UniversalModule, isBrowser } from 'angular2-universal'; | |
| import { MaterialModule } from '@angular/material'; | |
| import { AppComponent } from './components/app/app.component' | |
| import { NavMenuComponent } from './components/navmenu/navmenu.component'; | |
| import { HomeComponent } from './components/home/home.component'; | |
| import { FetchDataComponent } from './components/fetchdata/fetchdata.component'; | |
| import { CounterComponent } from './components/counter/counter.component'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| <rewrite> | |
| <rules> | |
| <rule name="SPA" stopProcessing="true"> | |
| <match url=".*" /> | |
| <action type="Rewrite" url="/" /> | |
| <conditions> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| </conditions> | |
| </rule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable, Inject } from '@angular/core'; | |
| import { BaseRequestOptions, RequestOptions, Headers, RequestOptionsArgs } from '@angular/http'; | |
| @Injectable() | |
| export class AppRequestOptions extends BaseRequestOptions { | |
| constructor() { | |
| super(); | |
| } | |
| merge(options?:RequestOptionsArgs):RequestOptions { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal static IDialog MakeRootDialog() | |
| { | |
| return new SandwichDialog(SandwichOrder.BuildForm); | |
| } | |
| public async Task<Message> Post([FromBody]Message message) | |
| { | |
| if (message.Type == "Message") | |
| { | |
| return await Conversation.SendAsync(message, MakeRootDialog); |