Add routs

pull/1/head
Max Ehrlicher-Schmidt 4 years ago
parent 1ec065cbae
commit acdf648fdf

@ -1,10 +1,18 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router'; 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({ @NgModule({
imports: [RouterModule.forRoot(routes)], imports: [RouterModule.forRoot(routes)],
exports: [RouterModule] exports: [RouterModule]
}) })
export class AppRoutingModule { } export class AppRoutingModule {
}

Loading…
Cancel
Save