41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
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';
|
|
import { ViewLoanComponent } from './view-loan/view-loan.component';
|
|
|
|
const routes: Routes = [
|
|
Route.withShell([
|
|
{
|
|
path: 'clients',
|
|
component: ClientsComponent,
|
|
data: { title: extract('Clients') }
|
|
},
|
|
{
|
|
path: 'clients/create',
|
|
component: CreateClientComponent,
|
|
data: { title: extract('Create Client') }
|
|
},
|
|
{
|
|
path: 'clients/view/:id',
|
|
component: ViewClientComponent,
|
|
data: { title: extract('View Client') }
|
|
},
|
|
{
|
|
path: 'clients/viewloan',
|
|
component: ViewLoanComponent,
|
|
data: { title: extract('View Loan') }
|
|
}
|
|
])
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
providers: []
|
|
})
|
|
export class ClientsRoutingModule { }
|