-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only layout pages should have the prefix "layout". "Module" routes are now loaded from main.ts
- Loading branch information
1 parent
53e29d0
commit ed35b5f
Showing
8 changed files
with
44 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
import { Route } from '@angular/router'; | ||
|
||
export const BUSINESS_ROUTES: Route[] = [ | ||
{ | ||
path: 'list', | ||
loadComponent: () => | ||
import('./containers/business-list/business-list.page').then( | ||
(m) => m.BusinessListPage | ||
) | ||
}, | ||
{ | ||
path: 'detail/:id', | ||
loadComponent: () => | ||
import('./containers/business-detail/business-detail.page').then( | ||
(m) => m.BusinessDetailPage | ||
) | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: 'list', | ||
pathMatch: 'full' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
import { Route } from '@angular/router'; | ||
|
||
export const COUNCIL_MEMBER_ROUTES: Route[] = [ | ||
{ | ||
path: 'list', | ||
loadComponent: () => | ||
import('./containers/member-list/member-list.page').then( | ||
(m) => m.MemberListPage | ||
) | ||
}, | ||
{ | ||
path: 'detail/:id', | ||
loadComponent: () => | ||
import('./containers/member-detail/member-detail.page').then( | ||
(m) => m.MemberDetailPage | ||
) | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: 'list', | ||
pathMatch: 'full' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,11 @@ | ||
import { Route } from '@angular/router'; | ||
|
||
export const VOTE_ROUTES: Route[] = [ | ||
{ | ||
path: 'list', | ||
loadComponent: () => | ||
import('./containers/vote-list/vote-list.page').then( | ||
(m) => m.VoteListPage | ||
) | ||
}, | ||
{ | ||
path: 'detail/:id', | ||
loadComponent: () => | ||
import('./containers/vote-detail/vote-detail.page').then( | ||
(m) => m.VoteDetailPage | ||
) | ||
}, | ||
{ | ||
path: '', | ||
redirectTo: 'list', | ||
pathMatch: 'full' | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Route } from '@angular/router'; | ||
|
||
export const APP_ROUTES: Route[] = [ | ||
{ | ||
path: 'business', | ||
loadChildren: () => | ||
import('./app/business/routes').then((mod) => mod.BUSINESS_ROUTES) | ||
}, | ||
{ | ||
path: 'council-member', | ||
loadChildren: () => | ||
import('./app/council-member/routes').then( | ||
(mod) => mod.COUNCIL_MEMBER_ROUTES | ||
) | ||
}, | ||
{ | ||
path: 'votes', | ||
loadChildren: () => | ||
import('./app/votes/routes').then((mod) => mod.VOTE_ROUTES) | ||
}, | ||
{ | ||
path: '', | ||
loadChildren: () => import('./app/layout/routes').then((m) => m.TAB_ROUTES) | ||
} | ||
]; |