mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(navbar): getting rid of alternate use section since it's now an anti-pattern
This commit is contained in:
24
js/angular/directive/navBar.js
vendored
24
js/angular/directive/navBar.js
vendored
@@ -43,30 +43,6 @@
|
||||
* to the top when tapped. Set no-tap-scroll to true to disable this behavior.
|
||||
*
|
||||
* </table><br/>
|
||||
*
|
||||
* ### Alternative Usage
|
||||
*
|
||||
* Alternatively, you may put ion-nav-bar inside of each individual view's ion-view element.
|
||||
* This will allow you to have the whole navbar, not just its contents, transition every view change.
|
||||
*
|
||||
* This is similar to using a header bar inside your ion-view, except it will have all the power of a navbar.
|
||||
*
|
||||
* If you do this, simply put nav buttons inside the navbar itself; do not use `<ion-nav-buttons>`.
|
||||
*
|
||||
*
|
||||
* ```html
|
||||
* <ion-view view-title="myTitle">
|
||||
* <ion-nav-bar class="bar-positive">
|
||||
* <ion-nav-back-button>
|
||||
* </ion-nav-back-button>
|
||||
* <div class="buttons primary-buttons">
|
||||
* <button class="button">
|
||||
Button
|
||||
* </button>
|
||||
* </div>
|
||||
* </ion-nav-bar>
|
||||
* </ion-view>
|
||||
* ```
|
||||
*/
|
||||
IonicModule
|
||||
.directive('ionNavBar', function() {
|
||||
|
||||
Reference in New Issue
Block a user