For adding the back arrow with out any text:-
Firstly include following in the menu.html
<ion-nav-back-button class="button-clear"> <i class="ion-arrow-left-c arrow_size"></i> </ion-nav-back-button> </ion-nav-buttons side="left"> </ion-nav-bar> </ion-nav-buttons>
Then include following in the app.js
.config(function ($ionicConfigProvider){$ionicConfigProvider.backButton.text('').icon('').previousTitleText(false);})
For hiding field from html page if that field has no data:-
Include following in html page
<div ng-show=”name == ‘myName’”>Some data</div>
For clear history:-
Include following in the controller.js,for which you want to clear history
$ionicViewService.clearHistory();
No comments:
Post a Comment