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

62 lines
2.0 KiB
TypeScript
Raw Normal View History

2017-07-12 14:34:32 +00:00
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
2017-07-04 09:42:00 +00:00
import 'hammerjs';
2017-07-12 14:34:32 +00:00
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { RouterModule, Routes } from '@angular/router';
import { MailModule } from './main/apps/mail/mail.module';
import { ChatModule } from './main/apps/chat/chat.module';
import { ProjectModule } from './main/apps/dashboards/project/project.module';
2017-07-13 14:43:22 +00:00
import { FuseLayoutService } from './core/services/layout.service';
import { FuseNavigationService } from './core/components/navigation/navigation.service';
2017-07-12 14:34:32 +00:00
import { SidenavComponent } from './core/components/sidenav/sidenav.component';
import { FuseMatchMedia } from './core/services/match-media.service';
2017-07-13 14:43:22 +00:00
import { FuseNavbarService } from './core/components/layout/navbar/navbar.service';
2017-07-12 12:35:07 +00:00
import { SharedModule } from './core/modules/shared.module';
2017-07-12 14:34:32 +00:00
import { FuseMdSidenavHelperService } from './core/directives/md-sidenav-helper/md-sidenav-helper.service';
2017-07-13 14:43:22 +00:00
import { UIPageLayoutsModule } from './main/ui/page-layouts/page-layouts.module';
import { FuseLayoutModule } from './core/components/layout/layout.module';
const appRoutes: Routes = [
2017-07-13 14:43:22 +00:00
{
path : 'apps/mail',
loadChildren: './main/apps/mail/mail.module#MailModule'
},
2017-07-12 12:35:07 +00:00
{
path : '**',
redirectTo: 'apps/dashboards/project'
2017-07-13 14:43:22 +00:00
},
];
@NgModule({
2017-07-04 09:42:00 +00:00
declarations: [
AppComponent,
2017-07-12 12:35:07 +00:00
SidenavComponent,
2017-07-04 09:42:00 +00:00
],
imports : [
BrowserModule,
BrowserAnimationsModule,
2017-07-13 14:43:22 +00:00
SharedModule,
2017-07-12 12:35:07 +00:00
RouterModule.forRoot(appRoutes),
2017-07-13 14:43:22 +00:00
FuseLayoutModule,
// MailModule,
ChatModule,
ProjectModule,
2017-07-13 14:43:22 +00:00
UIPageLayoutsModule
2017-07-04 09:42:00 +00:00
],
2017-07-12 14:34:32 +00:00
providers : [
2017-07-13 14:43:22 +00:00
FuseNavigationService,
FuseLayoutService,
2017-07-12 14:34:32 +00:00
FuseMatchMedia,
2017-07-13 14:43:22 +00:00
FuseNavbarService,
2017-07-12 14:34:32 +00:00
FuseMdSidenavHelperService
],
2017-07-04 09:42:00 +00:00
bootstrap : [AppComponent]
})
2017-07-04 09:42:00 +00:00
export class AppModule
{
}