Skip to content
Snippets Groups Projects
Commit 1a8b5ea3 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Add routing module for shared components

parent efcdad5b
Branches
Tags
No related merge requests found
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginPageComponent } from './login-page/login-page.component';
import { FooterImprintComponent } from './footer-imprint/footer-imprint.component';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
const routes: Routes = [
{
path: '',
redirectTo: '/home',
pathMatch: 'full'
},
{
path: 'home',
component: LoginPageComponent
},
{
path: 'imprint',
component: FooterImprintComponent
},
{
path: '**',
component: PageNotFoundComponent
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class SharedRoutingModule {
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment