Beta 13 issue: $ionicNavBarDelegate not immediately running methods


#1

Hey guys, having an issue with the latest release where the $ionicNavBarDelegate is not updating the view immediately after running. Here is some code I used on the video below to show the issue:

function ctrl($scope, $stateParams, $ionicNavBarDelegate) {
    $scope.page_name = "Home";
    setTimeout(function() {
        $ionicNavBarDelegate.$getByHandle('main-nav').showBar(false);
        console.log('hidden')
    }, 3000);

    console.log('home');
}

ctrl.$inject = ['$scope', '$stateParams', '$ionicNavBarDelegate'];

Ideally, this should hide the navbar when this controller runs, but it doesnt update the view until i actually click on the header. Any Ideas?