Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 617ab770
authored
Apr 03, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
viplist is now lazyloaded thingy
1 parent
3012b2dc
Pipeline
#59
failed
in 0 seconds
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
14 deletions
code/moya-angular/src/app/app-routing.module.ts
code/moya-angular/src/app/app.module.ts
code/moya-angular/src/app/menu/defines/menu.ts
code/moya-angular/src/app/modules/viplist/viplist-routing.module.ts
code/moya-angular/src/app/app-routing.module.ts
View file @
617ab77
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
,
PreloadAllModules
}
from
'@angular/router'
;
import
{
Routes
,
RouterModule
,
PreloadAllModules
,
NoPreloading
}
from
'@angular/router'
;
import
{
LoginComponent
}
from
'./modules/login/login.component'
;
import
{
FrontpageComponent
}
from
'./components/frontpage/frontpage.component'
;
import
{
ViplistModule
}
from
'./modules/viplist/viplist.module'
;
import
{
InfoViplistPageComponent
}
from
'./modules/viplist/info/info-viplist-page.component'
;
const
APP_ROUTES
:
Routes
=
[
{
path
:
'login'
,
component
:
LoginComponent
},
/*{ path: 'viplist', loadChildren: 'app/modules/viplist/viplist.module#ViplistModule' },*/
{
path
:
'viplist'
,
component
:
InfoViplistPageComponent
},
{
path
:
'viplist'
,
loadChildren
:
'app/modules/viplist/viplist.module#ViplistModule'
},
/*{ path: 'viplist', component: InfoViplistPageComponent },*/
{
path
:
'old'
,
loadChildren
:
'app/modules/old-moya/old-moya.module#OldMoyaModule'
},
{
path
:
'index'
,
component
:
FrontpageComponent
},
{
path
:
''
,
pathMatch
:
'full'
,
redirectTo
:
'/index'
,
}
...
...
code/moya-angular/src/app/app.module.ts
View file @
617ab77
...
...
@@ -13,7 +13,6 @@ import { MoyaLocaleComponent } from './components/moya-locale/moya-locale.compon
import
{
TopMenuComponent
}
from
'./menu/top-menu/top-menu.component'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
ViplistModule
}
from
'./modules/viplist/viplist.module'
;
import
{
LoginModule
}
from
'./modules/login/login.module'
;
import
{
LeftMenuModule
}
from
'./menu/left-menu/left-menu.module'
;
import
{
FrontpageComponent
}
from
'./components/frontpage/frontpage.component'
;
...
...
@@ -30,16 +29,10 @@ import { FrontpageComponent } from './components/frontpage/frontpage.component';
AppRoutingModule
,
FormsModule
,
HttpClientModule
,
ViplistModule
,
LoginModule
,
LeftMenuModule
,
// remove
ViplistModule
,
// /remove
AlertModule
.
forRoot
(),
TranslateModule
.
forRoot
({
loader
:
{
...
...
code/moya-angular/src/app/menu/defines/menu.ts
View file @
617ab77
...
...
@@ -21,7 +21,7 @@ export class MENU {
'name'
:
'Users'
,
'items'
:
[
{
'path'
:
'/old/info'
,
'name'
:
'List users'
,
'params'
:
{
p
:
'useradmin/list.jsf'
}
},
{
'path'
:
'/viplist'
,
'name'
:
'VipList'
}
{
'path'
:
'/viplist
/info
'
,
'name'
:
'VipList'
}
]}
];
...
...
code/moya-angular/src/app/modules/viplist/viplist-routing.module.ts
View file @
617ab77
...
...
@@ -4,7 +4,7 @@ import { Routes, RouterModule } from '@angular/router';
import
{
InfoViplistPageComponent
}
from
'./info/info-viplist-page.component'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
InfoViplistPageComponent
}
{
path
:
'
info
'
,
component
:
InfoViplistPageComponent
}
];
@
NgModule
({
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment