From b167698827a367be638c2e4eeaf8f7a81dbfeb4f Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Wed, 10 Jun 2015 13:06:48 -0500 Subject: [PATCH] Thoughts --- GUIDE.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/GUIDE.md b/GUIDE.md index 37e499f05d..e5be820668 100644 --- a/GUIDE.md +++ b/GUIDE.md @@ -63,9 +63,16 @@ class ContactsPage { } ``` +There are also shortcut directives we can use for links much like `ui-sref`, such as +`nav-push` and `nav-pop` which can be used like this: + +`` + +`` + The really nice thing about this is you can infinitely navigate now (for example, you can keep pushing new `ContactDetail` pages onto the stack), and -control things like animation. +control things like animation and the history stack the user has to navigate through. It also makes it incredibly easy to navigate to the same page in completely different contexts. For example, if you were building something similar to Apple's App Store @@ -77,11 +84,12 @@ For example, here's how the Minecraft `AppDetail` page looks in different tabs: - -Another example could be showing a `SongDetail` page in a music app. +Notice the page is exactly the same, but the way the user navigated to it is different. This hits on a core change in Ionic 2: the history state of the app is now your responsibility as a developer. It's up to you to make sure navigation provides a good UX, but you have the freedom to navigate as you see fit. ### Routing + +In Ionic