app.module.ts
1.73 KB
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
40
41
42
43
44
45
46
47
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { APP_BASE_HREF } from '@angular/common';
import { HttpModule } from '@angular/http';
//import { ModalModule } from 'ngx-bootstrap/modal';
import { UpdateUserProfile } from './components/UpdateProfile/updateuserprofile.component';
import { ChangeUserPassword } from './components/ChangePassword/changeuserpassword.component';
import { ManageDiscountCode } from './components/ManageDiscountCode/managediscountcode.component';
import { ChangeUserId } from './components/changeuserid.component';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app.routing.module';
//import { AuthGuard } from '../app/authguard.service';
//import { AuthService } from '../app/auth.service';
//import { MyInterceptor } from '../app/token.interceptor';
import { BsDatepickerModule } from 'ngx-bootstrap';
import { GlobalService } from './Shared/global';
@NgModule({
declarations: [
ChangeUserPassword, ChangeUserId,
UpdateUserProfile, ManageDiscountCode,
AppComponent
],
imports: [
BrowserModule, AppRoutingModule, HttpClientModule, FormsModule, ReactiveFormsModule, HttpModule,
BsDatepickerModule.forRoot() //ModalModule.forRoot()
],
providers: [
//AuthService,
//AuthGuard,
//{
// provide: HTTP_INTERCEPTORS,
// useClass: MyInterceptor,
// multi: true
//}
{ provide: APP_BASE_HREF, useValue: '/' }
, GlobalService
],
bootstrap: [AppComponent]
})
export class AppModule { }