Files
airport-chengdu-web/src/app/app.module.ts
T

45 lines
1.2 KiB
TypeScript
Raw Normal View History

2018-10-26 11:33:25 +08:00
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'
import { HttpClientModule } from '@angular/common/http'
import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component';
/** http */
import { HttpService } from './services/http.service'
import { HttpClientService } from './services/http-client.service'
/* 消息提示 */
import { ToastModule } from './components/toast/toast.module'
/* 预加载策略 */
import { SelectivePreloadingStrategy } from './preloading-strategy';
/* 路由权限控制 */
import { LoginAuthService } from './services/login-auth.service';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
CommonModule,
HttpClientModule,
ToastModule,
AppRoutingModule
],
providers: [
SelectivePreloadingStrategy,
LoginAuthService,
HttpService,
HttpClientService
],
bootstrap: [AppComponent]
})
export class AppModule { }