简体   繁体   中英

How to add multiple HTML pages in Ionic For Hybrid Mobile Application?

I have two pages in HTML as sign in and sign up page but unable to make them in single index.html page.

My project is Hybrid mobile app development.

You will need to use ionic navigation directives. See the link below to read more on it. Inside the ionic directive lies Angular's Routers.

http://ionicframework.com/docs/api/directive/ionNavView/

in ionc2 you can use NavController

https://ionicframework.com/docs/v2/api/navigation/NavController/

for more demonstration check this link: https://www.joshmorony.com/a-simple-guide-to-navigation-in-ionic-2/

to generate a new page you can write "ionic g page pageName" using CLI

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM