feat: add app shell (angular-material)
Add app shell built using angular-material and flex-layout. Refractor code due to configuration changes. Fixes #52
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { Route, extract } from '../../app/core';
|
||||
import { Route, extract } from '../core';
|
||||
import { UserManagementComponent } from './user-management/user-management.component';
|
||||
import { CreateUserComponent } from './create-user/create-user.component';
|
||||
import { ViewUserComponent } from './view-user/view-user.component';
|
||||
|
||||
const routes: Routes = [
|
||||
Route.withShell([
|
||||
{ path: 'self-service/users', component: UserManagementComponent, data: { title: extract('Self Service') } },
|
||||
{ path: 'self-service/users/create', component: CreateUserComponent },
|
||||
{ path: 'self-service/users/view', component: ViewUserComponent }
|
||||
{
|
||||
path: 'self-service/users',
|
||||
component: UserManagementComponent,
|
||||
data: { title: extract('Self Service Users') }
|
||||
},
|
||||
{
|
||||
path: 'self-service/users/create',
|
||||
component: CreateUserComponent,
|
||||
data: { title: extract('Create Self Service User') }
|
||||
},
|
||||
{
|
||||
path: 'self-service/users/view',
|
||||
component: ViewUserComponent,
|
||||
data: { title: extract('View Self Service User') }
|
||||
}
|
||||
])
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user