51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { ReceivedmaterialComponent } from './receivedmaterial/receivedmaterial.component';
|
|
import { AllocatematerialComponent } from './allocatematerial/allocatematerial.component';
|
|
import { StudymaterialstockComponent } from './studymaterialstock/studymaterialstock.component';
|
|
import { StudyMaterialComponent } from './study-material/study-material.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
data: {
|
|
title: 'Study Material'
|
|
},
|
|
children: [
|
|
{
|
|
path: 'receivedmaterial',
|
|
component: ReceivedmaterialComponent,
|
|
data: {
|
|
title: 'ReceivedMaterial'
|
|
}
|
|
},
|
|
{
|
|
path: 'allocatematerial',
|
|
component: AllocatematerialComponent,
|
|
data: {
|
|
title: 'AllocateMaterial'
|
|
}
|
|
},
|
|
{
|
|
path: 'studymaterialstock',
|
|
component: StudymaterialstockComponent,
|
|
data: {
|
|
title: 'Studymaterialstock'
|
|
}
|
|
},
|
|
{
|
|
path: 'studyMaterialStatus',
|
|
component: StudyMaterialComponent,
|
|
data: {
|
|
title: 'Study Material Status'
|
|
}
|
|
}
|
|
]
|
|
}];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class StudymaterialRoutingModule { }
|