mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 12:05:08 +00:00
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { ExtraOptions, PreloadAllModules, RouterModule } from '@angular/router';
|
|
import { FuseModule } from '@fuse';
|
|
import { FuseConfigModule } from '@fuse/services/config';
|
|
import { FuseMockApiModule } from '@fuse/lib/mock-api';
|
|
import { CoreModule } from 'app/core/core.module';
|
|
import { appConfig } from 'app/core/config/app.config';
|
|
import { mockApiServices } from 'app/mock-api';
|
|
import { LayoutModule } from 'app/layout/layout.module';
|
|
import { AppComponent } from 'app/app.component';
|
|
import { appRoutes } from 'app/app.routing';
|
|
|
|
const routerConfig: ExtraOptions = {
|
|
preloadingStrategy : PreloadAllModules,
|
|
scrollPositionRestoration: 'enabled'
|
|
};
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports : [
|
|
BrowserModule,
|
|
BrowserAnimationsModule,
|
|
RouterModule.forRoot(appRoutes, routerConfig),
|
|
|
|
// Fuse, FuseConfig & FuseMockAPI
|
|
FuseModule,
|
|
FuseConfigModule.forRoot(appConfig),
|
|
FuseMockApiModule.forRoot(mockApiServices),
|
|
|
|
// Core module of your application
|
|
CoreModule,
|
|
|
|
// Layout module of your application
|
|
LayoutModule
|
|
],
|
|
bootstrap : [
|
|
AppComponent
|
|
]
|
|
})
|
|
export class AppModule
|
|
{
|
|
}
|