barker/bookie/src/app/app-routing.module.ts

52 lines
1.6 KiB
TypeScript

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {LoginComponent} from "./auth/login/login.component";
import {LogoutComponent} from "./auth/logout/logout.component";
import {HomeComponent} from "./home/home.component";
const routes: Routes = [
{
path: 'bills',
loadChildren: () => import('./bills/bills.module').then(mod => mod.BillsModule)
},
{
path: 'guest-book',
loadChildren: () => import('./guest-book/guest-book.module').then(mod => mod.GuestBookModule)
},
{
path: 'products',
loadChildren: () => import('./product/products.module').then(mod => mod.ProductsModule)
},
{
path: 'product-groups',
loadChildren: () => import('./product-group/product-groups.module').then(mod => mod.ProductGroupsModule)
},
{
path: 'roles',
loadChildren: () => import('./roles/roles.module').then(mod => mod.RolesModule)
},
{
path: 'running-tables',
loadChildren: () => import('./running-tables/running-tables.module').then(mod => mod.RunningTablesModule)
},
{
path: 'tables',
loadChildren: () => import('./tables/tables.module').then(mod => mod.TableModule)
},
{
path: 'taxes',
loadChildren: () => import('./taxes/taxes.module').then(mod => mod.TaxesModule)
},
{path: 'login', component: LoginComponent},
{path: 'logout', component: LogoutComponent},
{path: '', component: HomeComponent},
];
@NgModule({
imports: [RouterModule.forRoot(routes,
{
onSameUrlNavigation: 'reload',
})],
exports: [RouterModule]
})
export class AppRoutingModule { }