forked from angular/angular.io
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathapp.module.ts
39 lines (34 loc) · 1.18 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { BrowserModule } from '@angular/platform-browser';
import { routing } from './app.routing';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { LoginComponent } from './login/login.component';
import { StatusComponent } from './status/status.component';
import {AzureADServiceConstants} from './ngAuth/authenticators/AzureADServiceConstants';
import {AzureADAuthService} from './ngAuth/authenticators/AzureADAuthService';
import {AuthenticatedHttpService} from './ngAuth/AuthenticatedHttpService';
import {serviceConstants} from './authsettings.config';
let authenticator = new AzureADAuthService(serviceConstants);
@NgModule({
providers: [
AuthenticatedHttpService,
{
provide: AzureADAuthService,
useValue: authenticator
}],
imports: [
routing,
BrowserModule,
HttpModule
],
declarations: [
AppComponent,
HomeComponent,
LoginComponent,
StatusComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }