@@ -3,11 +3,13 @@ import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { Route, extract } from '@app/core';
|
||||
import { HomeComponent } from './home.component';
|
||||
import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
|
||||
const routes: Routes = [
|
||||
Route.withShell([
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
{ path: 'home', component: HomeComponent, data: { title: extract('Home') } }
|
||||
{ path: 'home', component: HomeComponent, data: { title: extract('Home') } },
|
||||
{ path: 'home/dashboard', component: DashboardComponent}
|
||||
])
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user