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 { + +}