Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (17 sloc) 780 Bytes
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PageNotFoundComponent } from './shared/page-not-found/page-not-found.component';
import { HelpComponent } from './shared/help/help.component';
export const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'home' },
{ path: 'home', loadChildren: './home/home.module#HomeModule' },
{ path: 'sample', loadChildren: './sample/sample.module#SampleModule' },
{ path: 'account', loadChildren: './account/account.module#AccountModule' },
{ path: 'help', component: HelpComponent },
{ path: '**', component: PageNotFoundComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}
You can’t perform that action at this time.