created routes pages
This commit is contained in:
@@ -1,6 +1,18 @@
|
|||||||
import { Routes } from '@angular/router';
|
import {Routes} from '@angular/router';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{ path: '', pathMatch: 'full', redirectTo: '/welcome' },
|
{path: '', pathMatch: 'full', redirectTo: '/welcome'},
|
||||||
{ path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.routes').then(m => m.WELCOME_ROUTES) }
|
{path: 'welcome', loadChildren: () => import('./pages/welcome/welcome.routes').then(m => m.WELCOME_ROUTES)},
|
||||||
|
|
||||||
|
{path: '', pathMatch: 'full', redirectTo: '/book'},
|
||||||
|
{path: 'book', loadChildren: () => import('./pages/book/book.routes').then(m => m.BOOK_ROUTES)},
|
||||||
|
|
||||||
|
{path: '', pathMatch: 'full', redirectTo: '/author'},
|
||||||
|
{path: 'author', loadChildren: () => import('./pages/author/author.routes').then(m => m.AUTHOR_ROUTES)},
|
||||||
|
|
||||||
|
{path: '', pathMatch: 'full', redirectTo: '/loan'},
|
||||||
|
{path: 'loan', loadChildren: () => import('./pages/loan/loan.routes').then(m => m.LOAN_ROUTES)},
|
||||||
|
|
||||||
|
{ path: '', pathMatch: 'full', redirectTo: '/user' },
|
||||||
|
{ path: 'user', loadChildren: () => import('./pages/user/user.routes').then(m => m.USER_ROUTES) },
|
||||||
];
|
];
|
||||||
|
|||||||
6
src/app/pages/author/author.routes.ts
Normal file
6
src/app/pages/author/author.routes.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { Routes } from '@angular/router';
|
||||||
|
import { Author } from './author';
|
||||||
|
|
||||||
|
export const AUTHOR_ROUTES: Routes = [
|
||||||
|
{ path: '', component: Author },
|
||||||
|
]
|
||||||
6
src/app/pages/book/book.routes.ts
Normal file
6
src/app/pages/book/book.routes.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { Routes } from '@angular/router';
|
||||||
|
import { Book } from './book';
|
||||||
|
|
||||||
|
export const BOOK_ROUTES: Routes = [
|
||||||
|
{ path: '', component: Book },
|
||||||
|
]
|
||||||
6
src/app/pages/loan/loan.routes.ts
Normal file
6
src/app/pages/loan/loan.routes.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { Routes } from '@angular/router';
|
||||||
|
import { Loan } from './loan';
|
||||||
|
|
||||||
|
export const LOAN_ROUTES: Routes = [
|
||||||
|
{ path: '', component: Loan },
|
||||||
|
]
|
||||||
6
src/app/pages/user/user.routes.ts
Normal file
6
src/app/pages/user/user.routes.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { Routes } from '@angular/router';
|
||||||
|
import { User } from './user';
|
||||||
|
|
||||||
|
export const USER_ROUTES: Routes = [
|
||||||
|
{ path: '', component: User },
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user