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

26 lines
750 B
TypeScript
Raw Normal View History

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
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';
2017-02-03 02:02:23 -05:00
import { NavEngine } from './nav-engine/nav-engine.service';
import { NavLinkDirective } from './nav-engine/nav-link.directive';
@NgModule({
imports: [
BrowserModule,
MdToolbarModule.forRoot(),
MdButtonModule.forRoot()
],
2017-02-03 02:02:23 -05:00
declarations: [
AppComponent,
DocViewerComponent,
NavLinkDirective
],
providers: [NavEngine],
bootstrap: [AppComponent]
})
export class AppModule { }