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,7 +1,7 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { Route, extract } from '../../app/core';
|
||||
import { Route, extract } from '../core';
|
||||
import { ClientsComponent } from './clients.component';
|
||||
import { CreateClientComponent} from './create-client/create-client.component';
|
||||
import { ViewClientComponent } from './view-client/view-client.component';
|
||||
@@ -9,10 +9,26 @@ import { ViewLoanComponent } from './view-loan/view-loan.component';
|
||||
|
||||
const routes: Routes = [
|
||||
Route.withShell([
|
||||
{ path: 'clients', component: ClientsComponent},
|
||||
{ path: 'clients/create', component: CreateClientComponent},
|
||||
{ path: 'clients/view', component: ViewClientComponent},
|
||||
{ path: 'clients/viewloan', component: ViewLoanComponent}
|
||||
{
|
||||
path: 'clients',
|
||||
component: ClientsComponent,
|
||||
data: { title: extract('Clients') }
|
||||
},
|
||||
{
|
||||
path: 'clients/create',
|
||||
component: CreateClientComponent,
|
||||
data: { title: extract('Create Client') }
|
||||
},
|
||||
{
|
||||
path: 'clients/view',
|
||||
component: ViewClientComponent,
|
||||
data: { title: extract('View Client') }
|
||||
},
|
||||
{
|
||||
path: 'clients/viewloan',
|
||||
component: ViewLoanComponent,
|
||||
data: { title: extract('View Loan') }
|
||||
}
|
||||
])
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user