diff --git a/js/ext/angular/test/viewState.html b/js/ext/angular/test/viewState.html index 3e11b1b08c..75a3fe16c3 100644 --- a/js/ext/angular/test/viewState.html +++ b/js/ext/angular/test/viewState.html @@ -338,17 +338,17 @@ }) - .controller('ForgotPasswordCtrl', function($ionicViewService, $rootScope, $scope, $state) { + .controller('ForgotPasswordCtrl', function($ionicViewService, $rootScope, $scope, $state, $ionicNavBarDelegate) { $scope.clearViewHistory = function() { $ionicViewService.clearHistory(); }; $scope.hideNavBar = function() { - $rootScope.$broadcast('viewState.showNavBar', false); + $ionicNavBarDelegate.showBar(false); }; $scope.showNavBar = function() { - $rootScope.$broadcast('viewState.showNavBar', true); + $ionicNavBarDelegate.showBar(true); }; })