tata
This commit is contained in:
@@ -125,6 +125,16 @@ export const routes: Routes = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'dependencies',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
loadComponent: () => import('./features/dependencies/dependency-list/dependency-list.component')
|
||||||
|
.then(m => m.DependencyListComponent)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'persons',
|
path: 'persons',
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ export class MainLayoutComponent implements OnInit {
|
|||||||
route: '/environments',
|
route: '/environments',
|
||||||
color: '#ff9800'
|
color: '#ff9800'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Dependencies',
|
||||||
|
icon: '🔗',
|
||||||
|
route: '/dependencies',
|
||||||
|
color: '#00bcd4'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: 'Persons',
|
title: 'Persons',
|
||||||
icon: '👤',
|
icon: '👤',
|
||||||
@@ -77,7 +83,6 @@ export class MainLayoutComponent implements OnInit {
|
|||||||
this.currentUser = this.authService.getCurrentUser();
|
this.currentUser = this.authService.getCurrentUser();
|
||||||
this.activeRoute = this.router.url;
|
this.activeRoute = this.router.url;
|
||||||
|
|
||||||
// Listen to route changes to update active route
|
|
||||||
this.router.events.pipe(
|
this.router.events.pipe(
|
||||||
filter(event => event instanceof NavigationEnd)
|
filter(event => event instanceof NavigationEnd)
|
||||||
).subscribe((event: any) => {
|
).subscribe((event: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user