user-routing.module.ts 755 Bytes
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { UserComponent } from './user.component';

const routes: Routes = [
  { path: '', component: UserComponent },
  
];

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

/* { path: 'heroes', redirectTo: '/superheroes' },
{ path: 'hero/:id', redirectTo: '/superhero/:id' },
{ path: 'superheroes',  component: HeroListComponent },
{ path: 'superhero/:id', component: HeroDetailComponent }
 */

/* children: [
  {path: '', component: UserMenuComponent, outlet: 'left-menu'},
  {path: '', pathMatch: 'full', component: UserComponent},
  {path: 'old', component: OldMoyaComponent},
] */