2017-04-27 14:29:31 +00:00
|
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
|
2017-04-27 21:50:11 +00:00
|
|
|
import { HttpModule } from '@angular/http';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
|
|
|
import { AppComponent } from './app.component';
|
|
|
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
|
|
import { TabsModule } from 'ngx-bootstrap/tabs';
|
|
|
|
import { NAV_DROPDOWN_DIRECTIVES } from './shared/nav-dropdown.directive';
|
|
|
|
|
|
|
|
import { ChartsModule } from 'ng2-charts/ng2-charts';
|
|
|
|
import { SIDEBAR_TOGGLE_DIRECTIVES } from './shared/sidebar.directive';
|
|
|
|
import { AsideToggleDirective } from './shared/aside.directive';
|
|
|
|
import { BreadcrumbsComponent } from './shared/breadcrumb.component';
|
|
|
|
|
2017-06-08 13:28:54 +00:00
|
|
|
// Routing & Guard Module
|
2017-04-27 14:29:31 +00:00
|
|
|
import { AppRoutingModule } from './app.routing';
|
2017-06-08 15:05:01 +00:00
|
|
|
import { AuthGuard } from './_guards/auth.guard';
|
2017-04-27 14:29:31 +00:00
|
|
|
|
|
|
|
// Layouts
|
|
|
|
import { FullLayoutComponent } from './layouts/full-layout.component';
|
|
|
|
import { SimpleLayoutComponent } from './layouts/simple-layout.component';
|
|
|
|
|
2017-08-15 14:59:43 +00:00
|
|
|
// Submodules
|
|
|
|
import { AuthModule } from './auth/auth.module';
|
|
|
|
|
2017-04-27 14:29:31 +00:00
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
BrowserModule,
|
|
|
|
AppRoutingModule,
|
2017-04-27 21:50:11 +00:00
|
|
|
HttpModule,
|
2017-04-27 14:29:31 +00:00
|
|
|
BsDropdownModule.forRoot(),
|
|
|
|
TabsModule.forRoot(),
|
2017-08-15 14:59:43 +00:00
|
|
|
ChartsModule,
|
|
|
|
AuthModule,
|
2017-04-27 14:29:31 +00:00
|
|
|
],
|
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
|
|
|
FullLayoutComponent,
|
|
|
|
SimpleLayoutComponent,
|
|
|
|
NAV_DROPDOWN_DIRECTIVES,
|
|
|
|
BreadcrumbsComponent,
|
|
|
|
SIDEBAR_TOGGLE_DIRECTIVES,
|
|
|
|
AsideToggleDirective,
|
|
|
|
],
|
2017-06-08 13:28:54 +00:00
|
|
|
providers: [
|
|
|
|
AuthGuard,
|
|
|
|
{
|
2017-04-27 14:29:31 +00:00
|
|
|
provide: LocationStrategy,
|
|
|
|
useClass: HashLocationStrategy
|
|
|
|
}],
|
|
|
|
bootstrap: [ AppComponent ]
|
|
|
|
})
|
|
|
|
export class AppModule { }
|