18 lines
527 B
TypeScript
18 lines
527 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import {OwnerComponent} from './component/owner/owner.component';
|
|
import { HorseComponent } from './component/horse/horse.component';
|
|
|
|
|
|
const routes: Routes = [
|
|
{path: '', redirectTo: 'owner', pathMatch: 'full'},
|
|
{path: 'owner', component: OwnerComponent},
|
|
{path: 'horse', component: HorseComponent},
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|