angular-cn/aio/src/app/app.module.ts

36 lines
965 B
TypeScript
Raw Normal View History

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { MdToolbarModule } from '@angular/material/toolbar';
import { MdButtonModule} from '@angular/material/button';
2017-02-03 02:02:23 -05:00
import { AppComponent } from './app.component';
import { DocViewerComponent } from './doc-viewer/doc-viewer.component';
import { embeddedComponents, EmbeddedComponents } from './embedded';
import { Logger } from './logger.service';
import { navDirectives, navProviders } from './nav-engine';
@NgModule({
imports: [
BrowserModule,
HttpModule,
MdToolbarModule.forRoot(),
MdButtonModule.forRoot()
],
2017-02-03 02:02:23 -05:00
declarations: [
AppComponent,
embeddedComponents,
2017-02-03 02:02:23 -05:00
DocViewerComponent,
navDirectives,
2017-02-03 02:02:23 -05:00
],
providers: [
EmbeddedComponents,
Logger,
navProviders
],
entryComponents: [ embeddedComponents ],
bootstrap: [AppComponent]
})
export class AppModule {
}