mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 20:45:08 +00:00
9cb8c0c96b
Moved the navigation service to the app.module since we need it to be a singleton at all times
94 lines
3.1 KiB
TypeScript
94 lines
3.1 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { HttpModule } from '@angular/http';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { InMemoryWebApiModule } from 'angular-in-memory-web-api';
|
|
import 'hammerjs';
|
|
import { SharedModule } from './core/modules/shared.module';
|
|
import { AppComponent } from './app.component';
|
|
import { ProjectModule } from './main/content/apps/dashboards/project/project.module';
|
|
import { FuseFakeDbService } from './fuse-fake-db/fuse-fake-db.service';
|
|
import { FuseMainModule } from './main/main.module';
|
|
import { PagesModule } from './main/content/pages/pages.module';
|
|
import { UIModule } from './main/content/ui/ui.module';
|
|
import { ComponentsModule } from './main/content/components/components.module';
|
|
import { FuseSplashScreenService } from './core/services/splash-screen.service';
|
|
import { FuseConfigService } from './core/services/config.service';
|
|
import { FuseNavigationService } from './core/components/navigation/navigation.service';
|
|
import { ComponentsThirdPartyModule } from './main/content/components-third-party/components-third-party.module';
|
|
import { ServicesModule } from './main/content/services/services.module';
|
|
|
|
const appRoutes: Routes = [
|
|
{
|
|
path : 'apps/mail',
|
|
loadChildren: './main/content/apps/mail/mail.module#FuseMailModule'
|
|
},
|
|
{
|
|
path : 'apps/chat',
|
|
loadChildren: './main/content/apps/chat/chat.module#FuseChatModule'
|
|
},
|
|
{
|
|
path : 'apps/calendar',
|
|
loadChildren: './main/content/apps/calendar/calendar.module#FuseCalendarModule'
|
|
},
|
|
{
|
|
path : 'apps/todo',
|
|
loadChildren: './main/content/apps/todo/todo.module#FuseTodoModule'
|
|
},
|
|
{
|
|
path : 'apps/file-manager',
|
|
loadChildren: './main/content/apps/file-manager/file-manager.module#FuseFileManagerModule'
|
|
},
|
|
{
|
|
path : 'apps/contacts',
|
|
loadChildren: './main/content/apps/contacts/contacts.module#FuseContactsModule'
|
|
},
|
|
{
|
|
path : 'apps/scrumboard',
|
|
loadChildren: './main/content/apps/scrumboard/scrumboard.module#FuseScrumboardModule'
|
|
},
|
|
{
|
|
path : '**',
|
|
redirectTo: 'apps/dashboards/project'
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports : [
|
|
BrowserModule,
|
|
HttpModule,
|
|
HttpClientModule,
|
|
BrowserAnimationsModule,
|
|
RouterModule.forRoot(appRoutes),
|
|
SharedModule,
|
|
|
|
InMemoryWebApiModule.forRoot(FuseFakeDbService, {delay: 0}),
|
|
|
|
FuseMainModule,
|
|
|
|
ProjectModule,
|
|
|
|
PagesModule,
|
|
UIModule,
|
|
ServicesModule,
|
|
ComponentsModule,
|
|
ComponentsThirdPartyModule
|
|
],
|
|
providers : [
|
|
FuseSplashScreenService,
|
|
FuseConfigService,
|
|
FuseNavigationService
|
|
],
|
|
bootstrap : [
|
|
AppComponent
|
|
]
|
|
})
|
|
export class AppModule
|
|
{
|
|
}
|