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-03-26 16:32:29 -04:00
|
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
2017-02-15 14:22:37 -05:00
|
|
|
|
2017-03-01 09:30:25 -05:00
|
|
|
import { Location, LocationStrategy, PathLocationStrategy } from '@angular/common';
|
|
|
|
|
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';
|
2017-03-26 16:32:29 -04:00
|
|
|
import { MdTabsModule } from '@angular/material';
|
2017-02-15 14:22:37 -05:00
|
|
|
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
|
|
|
|
2017-03-01 09:30:25 -05:00
|
|
|
import { AppComponent } from 'app/app.component';
|
2017-03-08 16:08:19 -05:00
|
|
|
import { ApiService } from 'app/embedded/api/api.service';
|
2017-03-01 09:30:25 -05:00
|
|
|
import { DocViewerComponent } from 'app/layout/doc-viewer/doc-viewer.component';
|
2017-03-26 16:32:29 -04:00
|
|
|
import { EmbeddedModule } from 'app/embedded/embedded.module';
|
2017-03-13 21:08:23 -04:00
|
|
|
import { GaService } from 'app/shared/ga.service';
|
2017-03-01 09:30:25 -05:00
|
|
|
import { Logger } from 'app/shared/logger.service';
|
|
|
|
import { LocationService } from 'app/shared/location.service';
|
|
|
|
import { NavigationService } from 'app/navigation/navigation.service';
|
|
|
|
import { DocumentService } from 'app/documents/document.service';
|
2017-03-01 18:05:16 -05:00
|
|
|
import { SearchService } from 'app/search/search.service';
|
2017-03-01 09:30:25 -05:00
|
|
|
import { TopMenuComponent } from 'app/layout/top-menu/top-menu.component';
|
|
|
|
import { NavMenuComponent } from 'app/layout/nav-menu/nav-menu.component';
|
|
|
|
import { NavItemComponent } from 'app/layout/nav-item/nav-item.component';
|
2017-03-13 15:58:31 -04:00
|
|
|
import { SearchResultsComponent } from './search/search-results/search-results.component';
|
|
|
|
import { SearchBoxComponent } from './search/search-box/search-box.component';
|
2017-03-13 05:20:09 -04:00
|
|
|
import { AutoScrollService } from 'app/shared/auto-scroll.service';
|
2017-01-27 03:20:51 -05:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
2017-03-26 16:32:29 -04:00
|
|
|
EmbeddedModule,
|
2017-02-07 15:57:18 -05:00
|
|
|
HttpModule,
|
2017-03-26 16:32:29 -04:00
|
|
|
BrowserAnimationsModule,
|
2017-02-20 22:05:40 -05:00
|
|
|
MdButtonModule,
|
|
|
|
MdIconModule,
|
|
|
|
MdInputModule,
|
|
|
|
MdToolbarModule,
|
2017-03-26 16:32:29 -04:00
|
|
|
MdSidenavModule,
|
|
|
|
MdTabsModule
|
2017-01-27 03:20:51 -05:00
|
|
|
],
|
2017-02-03 02:02:23 -05:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
DocViewerComponent,
|
2017-03-01 09:30:25 -05:00
|
|
|
TopMenuComponent,
|
|
|
|
NavMenuComponent,
|
2017-02-15 14:22:37 -05:00
|
|
|
NavItemComponent,
|
2017-03-13 15:58:31 -04:00
|
|
|
SearchResultsComponent,
|
|
|
|
SearchBoxComponent,
|
2017-02-03 02:02:23 -05:00
|
|
|
],
|
2017-02-07 15:57:18 -05:00
|
|
|
providers: [
|
2017-03-08 16:08:19 -05:00
|
|
|
ApiService,
|
2017-03-13 21:08:23 -04:00
|
|
|
GaService,
|
2017-02-07 15:57:18 -05:00
|
|
|
Logger,
|
2017-03-01 09:30:25 -05:00
|
|
|
Location,
|
|
|
|
{ provide: LocationStrategy, useClass: PathLocationStrategy },
|
|
|
|
LocationService,
|
|
|
|
NavigationService,
|
|
|
|
DocumentService,
|
2017-03-01 18:05:16 -05:00
|
|
|
SearchService,
|
2017-03-13 05:20:09 -04:00
|
|
|
Platform,
|
|
|
|
AutoScrollService,
|
2017-02-07 15:57:18 -05:00
|
|
|
],
|
2017-01-27 03:20:51 -05:00
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
2017-02-07 15:57:18 -05:00
|
|
|
export class AppModule {
|
|
|
|
}
|