test(viewState.html): update to use $ionicNavBarDelegate

Closes #898
This commit is contained in:
Andy Joslin
2014-03-27 06:58:24 -06:00
parent 41b73abf40
commit 1984dd66f3

View File

@@ -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);
};
})