nasted2-routing.module.ts 599 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
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { Nasted21Component } from './nasted2.1/nasted2.1.component';
import { Nasted22Component } from './nasted2.2/nasted2.2.component';

const routes: Routes = [
  {
    path: '',
    children: [
      {
        path: 'nasted2.1',
        component: Nasted21Component,
      },
      {
        path: 'nasted2.2',
        component: Nasted22Component,
      },
    ],
  },
];

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