I have 2 buttons on header bar, left one shows number of points and at right its for side menu, here is my code. I want to hide the number of points button when its showing back button. currently it shows back button and points.
Thanks @bengtler I have used below method to do it, its now hiding it but the main header title is not center aligned, its a little right. Here is what I have done
angular.module('app').run(function ($rootScope, $location) { // Hide Points if Back Button is visible $rootScope.$on('$ionicView.beforeEnter', function (e, data) { $rootScope.hideCoins = !data.enableBack; }); });