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.
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
hrefto navigate around. However, we still have the option to use a URL to navigate to a page when necessary.