app-routing.module.ts 527 Bytes
Newer Older
1 2 3
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {OwnerComponent} from './component/owner/owner.component';
4
import { HorseComponent } from './component/horse/horse.component';
5 6 7 8


const routes: Routes = [
  {path: '', redirectTo: 'owner', pathMatch: 'full'},
9 10
  {path: 'owner', component: OwnerComponent},
  {path: 'horse', component: HorseComponent},
11 12 13 14 15 16 17
];

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