nastedmenu-routing.module.ts 851 Bytes
Newer Older
Ooh-Ao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { Nasted1Component } from './nasted1/nasted1.component';
import { Nasted21Component } from './nasted2/nasted2.1/nasted2.1.component';
import { Nasted22Component } from './nasted2/nasted2.2/nasted2.2.component';

const routes: Routes = [
  {
    path: '',
    children: [
      {
        path: 'nasted1',
        component: Nasted1Component,
      },
    ],
  },
  {
    path: '',
    children: [
      {
        path: 'nasted2',
        component: Nasted21Component,
      },
    ],
  },
  {
    path: '',
    children: [
      {
        path: 'nasted22',
        component: Nasted22Component,
      },
    ],
  },
];

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