From 712e7d8cbfe9454d0b98f533464dd3cd941edc65 Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Tue, 20 May 2014 12:22:10 -0600 Subject: [PATCH] docs(ionNavBar): add note about ion-view, update example --- js/angular/directive/navBar.js | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/js/angular/directive/navBar.js b/js/angular/directive/navBar.js index 8a504f5984..268ef8af82 100644 --- a/js/angular/directive/navBar.js +++ b/js/angular/directive/navBar.js @@ -18,6 +18,9 @@ * Assign an [animation class](/docs/components#animations) to the element to * enable animated changing of titles (recommended: 'nav-title-slide-ios7') * + * Note that the ion-nav-bar element will only work correctly if your content has an + * ionView around it. + * * @usage * * ```html @@ -27,7 +30,11 @@ * * * - * + * + * + * Hello! + * + * * * ``` * @@ -49,17 +56,17 @@ * * * ```html - * - * - * Back - * - *
- * - *
- *
* + * + * + * Back + * + *
+ * + *
+ *
*
* ``` */