2017-07-04 09:42:00 +00:00
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import 'hammerjs';
|
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
|
|
import {AppComponent} from './app.component';
|
2017-07-08 16:12:52 +00:00
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {LayoutComponent} from './core/layout/layout.component';
|
|
|
|
import {ToolbarComponent} from './toolbar/toolbar.component';
|
|
|
|
import {MailModule} from './main/apps/mail/mail.module';
|
|
|
|
import {ChatModule} from './main/apps/chat/chat.module';
|
|
|
|
import {NavigationModule} from './navigation/navigation.module';
|
|
|
|
import {ProjectModule} from './main/apps/dashboards/project/project.module';
|
|
|
|
import {SharedModule} from './core/shared.module';
|
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
|
|
|
{path: '**', redirectTo: 'apps/dashboards/project'}
|
|
|
|
];
|
2017-06-27 08:08:19 +00:00
|
|
|
|
|
|
|
@NgModule({
|
2017-07-04 09:42:00 +00:00
|
|
|
declarations: [
|
|
|
|
AppComponent,
|
2017-07-08 16:12:52 +00:00
|
|
|
LayoutComponent,
|
|
|
|
ToolbarComponent
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
|
|
|
imports : [
|
2017-07-08 16:12:52 +00:00
|
|
|
SharedModule,
|
2017-07-04 09:42:00 +00:00
|
|
|
BrowserModule,
|
|
|
|
BrowserAnimationsModule,
|
2017-07-08 16:12:52 +00:00
|
|
|
RouterModule.forRoot(
|
|
|
|
appRoutes,
|
|
|
|
{enableTracing: true} // <-- debugging purposes only
|
|
|
|
),
|
|
|
|
NavigationModule,
|
|
|
|
MailModule,
|
|
|
|
ChatModule,
|
|
|
|
ProjectModule
|
2017-07-04 09:42:00 +00:00
|
|
|
],
|
|
|
|
providers : [],
|
|
|
|
bootstrap : [AppComponent]
|
2017-06-27 08:08:19 +00:00
|
|
|
})
|
2017-07-04 09:42:00 +00:00
|
|
|
export class AppModule
|
|
|
|
{
|
|
|
|
}
|