Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {NgModule} from '@angular/core';
- import {Routes, RouterModule} from '@angular/router';
- const routes: Routes = [
- {
- path: 'dashboard',
- loadChildren: '../dashboard/dashboard.module#DashboardModule'
- },
- {
- path: '',
- pathMatch: 'full',
- redirectTo: 'dashboard'
- }
- ];
- @NgModule({
- imports: [RouterModule.forRoot(routes)],
- exports: [RouterModule]
- })
- export class CoreRoutingModule {
- }
Add Comment
Please, Sign In to add comment