src/app/modules/search/search.routing.module.ts
Модуль маршрутизации для поиска
import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { SearchComponent } from './search.component';
import { SearchStudentComponent } from './student/student';
import { SearchStaffComponent } from './staff/staff';
import { SearchStructureComponent } from './structure/structure';
import { SearchStructureEduComponent } from './structure_edu/structure_edu';
const SEARCH_ROUTES: Routes = [
{
path: '', component: SearchComponent,
children: [
{path: '', redirectTo: 'structure'},
{path: 'structure', component: SearchStructureComponent},
{path: 'structure_edu', component: SearchStructureEduComponent},
{path: 'staff', component: SearchStaffComponent},
{path: 'student', component: SearchStudentComponent}
]
},
];
/**
* Модуль маршрутизации для поиска
*/
@NgModule({
imports: [
RouterModule.forChild(SEARCH_ROUTES)
],
exports: [RouterModule]
})
export class SearchRoutingModule {
}