init commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
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 { }
|
||||
Reference in New Issue
Block a user