change child route behaviour

This commit is contained in:
rubikscraft
2022-03-16 22:27:03 +01:00
parent f2663ee76b
commit 5f1cf2911f
30 changed files with 204 additions and 88 deletions

View File

@@ -0,0 +1,22 @@
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { PRoutes } from 'src/app/models/picsur-routes';
import { E401Component } from './401.component';
import { E404Component } from './404.component';
const routes: PRoutes = [
{
path: '404',
component: E404Component,
},
{
path: '401',
component: E401Component,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ErrorsRoutingModule {}