Add ability to change the homepage
This commit is contained in:
parent
a73c582e5b
commit
901637bb87
18 changed files with 108 additions and 18 deletions
|
@ -1,14 +1,10 @@
|
|||
import { NgModule } from '@angular/core'
|
||||
import { Routes, RouterModule } from '@angular/router'
|
||||
import { RedirectService } from '@app/core/routing/redirect.service'
|
||||
|
||||
import { PreloadSelectedModulesList } from './core'
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
redirectTo: '/videos/trending',
|
||||
pathMatch: 'full'
|
||||
},
|
||||
{
|
||||
path: 'admin',
|
||||
loadChildren: './+admin/admin.module#AdminModule'
|
||||
|
@ -22,7 +18,9 @@ const routes: Routes = [
|
|||
preloadingStrategy: PreloadSelectedModulesList
|
||||
})
|
||||
],
|
||||
providers: [ PreloadSelectedModulesList ],
|
||||
providers: [
|
||||
PreloadSelectedModulesList
|
||||
],
|
||||
exports: [ RouterModule ]
|
||||
})
|
||||
export class AppRoutingModule {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue