Nothing happens when i'm using $ionicNavBarDelegate.showBar(false)


#1

In my controller i put this code:

   extractor.controller('LoginCtrl', ['$scope', '$location', '$ionicNavBarDelegate' , function($scope, $location,          $ionicNavBarDelegate) {

     $ionicNavBarDelegate.showBar(false);

but nothin happens, my nav-bar is still shows.


#2

Try to wrap it up in a $timeout with maybe 100ms.