47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { BrowserModule } from '@angular/platform-browser';
|
|
import { NgModule } from '@angular/core';
|
|
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
|
|
import { HttpModule } from '@angular/http';
|
|
|
|
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';
|
|
|
|
// Routing Module
|
|
import { AppRoutingModule } from './app.routing';
|
|
|
|
// Layouts
|
|
import { FullLayoutComponent } from './layouts/full-layout.component';
|
|
import { SimpleLayoutComponent } from './layouts/simple-layout.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule,
|
|
HttpModule,
|
|
BsDropdownModule.forRoot(),
|
|
TabsModule.forRoot(),
|
|
ChartsModule
|
|
],
|
|
declarations: [
|
|
AppComponent,
|
|
FullLayoutComponent,
|
|
SimpleLayoutComponent,
|
|
NAV_DROPDOWN_DIRECTIVES,
|
|
BreadcrumbsComponent,
|
|
SIDEBAR_TOGGLE_DIRECTIVES,
|
|
AsideToggleDirective,
|
|
],
|
|
providers: [{
|
|
provide: LocationStrategy,
|
|
useClass: HashLocationStrategy
|
|
}],
|
|
bootstrap: [ AppComponent ]
|
|
})
|
|
export class AppModule { }
|