Add routs
parent
1ec065cbae
commit
acdf648fdf
@ -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 {
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue