Initial commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {AppLayoutComponent} from './layout/app.layout.component';
|
||||
import {LibraryBrowserComponent} from './book/component/library-browser/library-browser.component';
|
||||
import {PdfViewerComponent} from './book/component/pdf-viewer/pdf-viewer.component';
|
||||
import {DashboardComponent} from './book/component/dashboard/dashboard.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '', component: AppLayoutComponent,
|
||||
children: [
|
||||
{
|
||||
path: '', component: DashboardComponent,
|
||||
},
|
||||
{
|
||||
path: 'library/:libraryId/books', component: LibraryBrowserComponent,
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'pdf-viewer/book/:bookId',
|
||||
component: PdfViewerComponent
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forRoot(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class AppRoutingModule {
|
||||
}
|
||||
Reference in New Issue
Block a user