import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { EmployeeComponent } from './employee/employee.component';
import { RoleComponent } from './role/role.component';
import { StudyCenterComponent } from './study-center/study-center.component';

const routes: Routes = [
  {
    path: '',
    data: {
     title: 'Masters'
    },
    children: [
      {
        path: 'employee',
        component: EmployeeComponent,
        data: {
          title: 'Employee'
        }
      },
      {
        path: 'role',
        component: RoleComponent,
        data: {
          title: 'Role'
        }
      },
      {
        path: 'studyCenter',
        component: StudyCenterComponent,
        data: {
          title: 'Study Center'
        }
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MastersRoutingModule {}
