Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <ion-tabs>
  2. <ion-tab [root]="usersPage" tabTitle="Users" tabIcon="people"></ion-tab>
  3. <ion-tab [root]="profilePage" [rootParams]="{id: currentUserId}"
  4. tabTitle="Profile" tabIcon="person"></ion-tab>
  5. </ion-tabs>
  6.  
  7. export class TabsPage {
  8. usersPage: any = UsersPage;
  9. profilePage: any = ProfilePage;
  10. currentUserId:number;
  11. constructor(public identity: Identity) {
  12. identity.getCurrentUser().then(u => this.currentUserId = u.id)
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement