From acdf648fdf5c4d3caeefe8e0e77bfe48c25264ed Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 3 Sep 2020 15:31:24 +0200 Subject: [PATCH] Add routs --- src/app/app-routing.module.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index d425c6f..d42612b 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,10 +1,18 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; +import { LoginComponent} from './pages/login/login.component' +import { BikesComponent} from './pages/bikes/bikes.component' -const routes: Routes = []; +const routes: Routes = [ + { path: 'login', component: LoginComponent }, + { path: 'bikes', component: BikesComponent }, + { path: '', redirectTo: '/bikes', pathMatch: 'full' }, +]; @NgModule({ imports: [RouterModule.forRoot(routes)], exports: [RouterModule] }) -export class AppRoutingModule { } +export class AppRoutingModule { + +}