- Ionic:Hybrid Mobile App Development
- Rahat Khanna Sani Yusuf Hoc Phan
- 235字
- 2021-07-09 19:00:36
Navigation and back menus
Ionic Framework has strong navigation support in the form of various directives such as ionNavView
, ionView
, ionNavBar
, and so on. Ionic stores and maintains the navigation history in the mobile app. It dictates the transitions appropriately. An app section can have multiple views, which maintain separate navigation histories.
The UI Router module and states are an integral part of the design for the navigation concepts. The <ion-nav-view>
directive has already been explained in the first section while defining the UI Router module.
<ion-view>
is another directive that should be used as a container for the content of any view. It should have a <ion-content>
directive and can have header and navbar information. It defines the title of the parent ionNavBar
using the view-title
attribute. There are other attributes such as cache-view
to enable caching, hide-back-button
to define whether the back button should be displayed or not, and hide-nav-bar
attribute to define whether to hide the parent ionNavBar
or not:
<ion-nav-bar>
is another directive that is created along with the<ion-nav-view>
directive and shows a top bar that will be modified as soon as the state changes. We can add a back button to be shown using a<ion-nav-back-button>
directive. We can also add some custom buttons using the<ion-nav-buttons>
directive.<ion-nav-title>
is a directive that can be used inside the<ion-nav-view>
directive to override the title set in the navbar with any custom title or HTML content as a title.
- Java異步編程實戰
- 軟件項目管理(第2版)
- Mastering Adobe Captivate 2017(Fourth Edition)
- Building a RESTful Web Service with Spring
- INSTANT Sencha Touch
- Magento 2 Development Cookbook
- JavaScript前端開發與實例教程(微課視頻版)
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- SQL Server 2016數據庫應用與開發習題解答與上機指導
- Mastering JavaScript Design Patterns(Second Edition)
- 軟件品質之完美管理:實戰經典
- 區塊鏈底層設計Java實戰
- Developing SSRS Reports for Dynamics AX
- Arduino機器人系統設計及開發
- AI自動化測試:技術原理、平臺搭建與工程實踐