MOBILE-2333 mainmenu: Support page params in handlers

main
Dani Palou 2018-02-12 11:51:16 +01:00
parent b795a6230e
commit 9267c63698
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<ion-tabs *ngIf="loaded" #mainTabs [selectedIndex]="initialTab" tabsPlacement="bottom" tabsLayout="title-hide">
<ion-tab [enabled]="false" [show]="false" [root]="redirectPage" [rootParams]="redirectParams"></ion-tab>
<ion-tab *ngFor="let tab of tabs" [root]="tab.page" [tabTitle]="tab.title | translate" [tabIcon]="tab.icon" [tabBadge]="tab.badge" class="{{tab.class}}"></ion-tab>
<ion-tab *ngFor="let tab of tabs" [root]="tab.page" [rootParams]="tab.pageParams" [tabTitle]="tab.title | translate" [tabIcon]="tab.icon" [tabBadge]="tab.badge" class="{{tab.class}}"></ion-tab>
</ion-tabs>

View File

@ -82,6 +82,12 @@ export interface CoreMainMenuHandlerData {
* @type {boolean}
*/
loading?: boolean;
/**
* Params to pass to the page.
* @type {any}
*/
pageParams?: any;
}
/**