fuse-angular/src/app/app.module.ts

44 lines
1.3 KiB
TypeScript
Raw Normal View History

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';
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'}
];
@NgModule({
2017-07-04 09:42:00 +00:00
declarations: [
AppComponent,
LayoutComponent,
ToolbarComponent
2017-07-04 09:42:00 +00:00
],
imports : [
SharedModule,
2017-07-04 09:42:00 +00:00
BrowserModule,
BrowserAnimationsModule,
RouterModule.forRoot(
appRoutes,
{enableTracing: true} // <-- debugging purposes only
),
NavigationModule,
MailModule,
ChatModule,
ProjectModule
2017-07-04 09:42:00 +00:00
],
providers : [],
bootstrap : [AppComponent]
})
2017-07-04 09:42:00 +00:00
export class AppModule
{
}