Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Using URL's to navigate in Ionic 2

$
0
0

I want to use URL's to navigate between pages in an Ionic 2 project. I am aware that the new navigation system works with push and pop but the docs clearly mention that URL's can still be used. I tried searching the docs and the source on how to do this but I couldn't find anything.

If anyone has managed to do this or can figure it out please let me know.

Like native apps, URLs are not required for navigation. Instead, pages are pushed and popped on and off a navigation controller’s page stack. URLs can be used to link back to unique, important parts of your app (“deeplinking”) but don’t define navigation as your app runs.

http://ionicframework.com/docs/v2/components/#navigation

When it comes to URLs, Ionic 2 works a bit differently than Ionic 1. Instead of using URLs to navigate, we use them to make sure we can always come back to a page (on app launch, for example). This means we aren't not limited to using href to navigate around. However, we still have the option to use a URL to navigate to a page when necessary.

http://ionicframework.com/docs/v2/getting-started/tutorial/navigation/


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>