You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
angular_minigame/src/app/app.routes.ts

16 lines
744 B

import { Routes } from '@angular/router';
import { BookListComponent } from './components/book-list/book-list.component';
import { BookFormComponent } from './components/book-form/book-form.component';
import { BookDetailComponent } from './components/book-detail/book-detail.component';
import { BookHomeComponent } from './components/book-home/book-home.component';
import { LoginComponent } from './components/login/login.component';
export const routes: Routes = [
{ path: '', component: LoginComponent },
{ path: 'books', component: BookListComponent },
{ path: 'book/add', component: BookFormComponent },
{ path: 'book/:id', component: BookDetailComponent },
{ path: '**', redirectTo: '', pathMatch: 'full' }
];