2017-01-27 03:20:51 -05:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
2017-02-07 15:57:18 -05:00
|
|
|
import { HttpModule } from '@angular/http';
|
2017-02-15 14:22:37 -05:00
|
|
|
|
2017-01-27 03:20:51 -05:00
|
|
|
import { MdToolbarModule } from '@angular/material/toolbar';
|
2017-02-02 15:10:47 -05:00
|
|
|
import { MdButtonModule} from '@angular/material/button';
|
2017-02-15 14:22:37 -05:00
|
|
|
import { MdIconModule} from '@angular/material/icon';
|
|
|
|
import { MdInputModule } from '@angular/material/input';
|
|
|
|
import { MdSidenavModule } from '@angular/material/sidenav';
|
|
|
|
import { Platform } from '@angular/material/core';
|
|
|
|
|
|
|
|
// Temporary fix for MdSidenavModule issue:
|
|
|
|
// crashes with "missing first" operator when SideNav.mode is "over"
|
|
|
|
import 'rxjs/add/operator/first';
|
2017-02-03 02:02:23 -05:00
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
2017-02-02 15:10:47 -05:00
|
|
|
import { DocViewerComponent } from './doc-viewer/doc-viewer.component';
|
2017-02-07 15:57:18 -05:00
|
|
|
import { embeddedComponents, EmbeddedComponents } from './embedded';
|
|
|
|
import { Logger } from './logger.service';
|
|
|
|
import { navDirectives, navProviders } from './nav-engine';
|
2017-02-15 14:22:37 -05:00
|
|
|
import { SidenavComponent } from './sidenav/sidenav.component';
|
|
|
|
import { NavItemComponent } from './sidenav/nav-item.component';
|
|
|
|
import { MenuComponent } from './sidenav/menu.component';
|
2017-01-27 03:20:51 -05:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2017-02-07 15:57:18 -05:00
|
|
|
HttpModule,
|
2017-02-15 14:22:37 -05:00
|
|
|
MdButtonModule.forRoot(),
|
|
|
|
MdIconModule.forRoot(),
|
|
|
|
MdInputModule.forRoot(),
|
2017-01-27 03:20:51 -05:00
|
|
|
MdToolbarModule.forRoot(),
|
2017-02-15 14:22:37 -05:00
|
|
|
MdSidenavModule.forRoot()
|
2017-01-27 03:20:51 -05:00
|
|
|
],
|
2017-02-03 02:02:23 -05:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2017-02-07 15:57:18 -05:00
|
|
|
embeddedComponents,
|
2017-02-03 02:02:23 -05:00
|
|
|
DocViewerComponent,
|
2017-02-15 14:22:37 -05:00
|
|
|
MenuComponent,
|
2017-02-07 15:57:18 -05:00
|
|
|
navDirectives,
|
2017-02-15 14:22:37 -05:00
|
|
|
NavItemComponent,
|
|
|
|
SidenavComponent,
|
2017-02-03 02:02:23 -05:00
|
|
|
],
|
2017-02-07 15:57:18 -05:00
|
|
|
providers: [
|
|
|
|
EmbeddedComponents,
|
|
|
|
Logger,
|
2017-02-15 14:22:37 -05:00
|
|
|
navProviders,
|
|
|
|
Platform
|
2017-02-07 15:57:18 -05:00
|
|
|
],
|
|
|
|
entryComponents: [ embeddedComponents ],
|
2017-01-27 03:20:51 -05:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
2017-02-07 15:57:18 -05:00
|
|
|
export class AppModule {
|
|
|
|
}
|