Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (29 sloc) 896 Bytes
import {NgModule, Optional, SkipSelf} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {PageNotFoundView} from './views/page-not-found/page-not-found.view';
import {routingPaths as coffeeListRoutingPaths} from './features/coffee-list/coffee-list-routing.module';
const appRoutes: Routes = [
path: '',
redirectTo: coffeeListRoutingPaths.coffeeList,
pathMatch: 'full',
{path: '**', component: PageNotFoundView},
imports: [RouterModule.forRoot(appRoutes)],
exports: [RouterModule],
export class AppRoutingModule {
parentModule: AppRoutingModule
) {
if (parentModule) {
throw new Error(
'AppRoutingModule is already loaded. Import it in the AppModule only.'
You can’t perform that action at this time.