Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { AppComponent } from './app.component';
import { DevUIModule } from 'ng-devui/devui.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
DevUIModule.forRoot(),
RouterModule.forRoot(
[
{
path: '',
redirectTo: 'components',
pathMatch: 'full'
},
{
path: 'components',
loadChildren: './component/app-content.module#AppContentModule'
},
{
path: '**',
redirectTo: 'components'
}
]