2017-04-13 14:24:23 +03:00
|
|
|
import { ExtraOptions, RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
// {path: 'admin'}
|
2017-04-21 17:23:44 +03:00
|
|
|
{ path: 'pages', loadChildren: 'app/pages/pages.module#PagesModule' },
|
|
|
|
|
{ path: '', redirectTo: 'pages', pathMatch: 'full' },
|
|
|
|
|
{ path: '**', redirectTo: 'pages' },
|
2017-04-13 14:24:23 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const config: ExtraOptions = {
|
2017-04-21 17:23:44 +03:00
|
|
|
useHash: true,
|
2017-04-13 14:24:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forRoot(routes, config)],
|
2017-04-21 17:23:44 +03:00
|
|
|
exports: [RouterModule],
|
2017-04-13 14:24:23 +03:00
|
|
|
})
|
|
|
|
|
export class AppRoutingModule {
|
|
|
|
|
}
|