ionic 2 tabs in all pages (including new pages)

烂漫一生 提交于 2019-12-23 16:17:51

问题


I'm new to ionic2 and i want to create a shopping app that have both sidemenu layout for app navigation(categories,deals,settings,login,viewaccount,etc...). And 3 tabs (home,wishlist,cart), I have started new project based on tabs layout and managed to add sidemenu.

How i can keep the 3 tabs available for all existing pages including new pages that i want to create in the future? I want the tabs to be fixed for all pages and for the user to navigate to any of the tabs at anytime inside any page. Thank you.


回答1:


download conference app from github.

https://github.com/driftyco/ionic-conference-app

You get every thing from there as per your requirement.




回答2:


You should use "tabs" of ionic 2 than "segments". As tabs are set as root of the navigation stack.

For tabs, refer this.

Or you might have to manually implement "segments" on all pages of the app.

For segments, refer this.



来源:https://stackoverflow.com/questions/41848270/ionic-2-tabs-in-all-pages-including-new-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!