app.module.ts 1.52 KB

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/changeuserpassword.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 { GlobalService } from './Shared/global';

@NgModule({
  declarations: [
    ChangeUserPassword, ChangeUserId,
    UpdateUserProfile,
    AppComponent
  ],
  imports: [
    BrowserModule, AppRoutingModule, HttpClientModule, FormsModule, ReactiveFormsModule, HttpModule //ModalModule.forRoot()
  ],
  providers: [
    //AuthService,
    //AuthGuard,
    //{
    //  provide: HTTP_INTERCEPTORS,
    //  useClass: MyInterceptor,
    //  multi: true
    //}
    { provide: APP_BASE_HREF, useValue: '/' }
    , GlobalService
  ],
  bootstrap: [AppComponent]
})

export class AppModule { }