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 { MailModule } from './main/apps/mail/mail.module'; import { ChatModule } from './main/apps/chat/chat.module'; import { ProjectModule } from './main/apps/dashboards/project/project.module'; import { FuseLayoutService } from './core/services/layout.service'; import { FuseNavigationService } from './core/components/navigation/navigation.service'; import { SidenavComponent } from './core/components/sidenav/sidenav.component'; import { FuseMatchMedia } from './core/services/match-media.service'; import { FuseNavbarService } from './core/components/layout/navbar/navbar.service'; import { SharedModule } from './core/modules/shared.module'; import { FuseMdSidenavHelperService } from './core/directives/md-sidenav-helper/md-sidenav-helper.service'; import { UIPageLayoutsModule } from './main/ui/page-layouts/page-layouts.module'; import { FuseLayoutModule } from './core/components/layout/layout.module'; const appRoutes: Routes = [ { path : 'apps/mail', loadChildren: './main/apps/mail/mail.module#MailModule' }, { path : '**', redirectTo: 'apps/dashboards/project' }, ]; @NgModule({ declarations: [ AppComponent, SidenavComponent, ], imports : [ BrowserModule, BrowserAnimationsModule, SharedModule, RouterModule.forRoot(appRoutes), FuseLayoutModule, // MailModule, ChatModule, ProjectModule, UIPageLayoutsModule ], providers : [ FuseNavigationService, FuseLayoutService, FuseMatchMedia, FuseNavbarService, FuseMdSidenavHelperService ], bootstrap : [AppComponent] }) export class AppModule { }