Ionic noob here. Have a tab declared like this:
<!-- Tab Go -->
<ion-tab id="tabgo" title="Go" disabled="true" icon-off="ion-ios-thunderstorm-outline" icon-on="ion-ios-thunderstorm" href="#/tab/go">
<ion-nav-view name="tab-go"></ion-nav-view>
</ion-tab>
…with the tab disabled. This works fine and the tab/ icon is in fact disabled when displayed. But when a button on another tab is clicked I want to change disabled on the go tab to false and re-enable / re-activate the tab. I do this in the other tab’s controller:
.controller('HomeCtrl', function($scope) {
$scope.signIn = function(){
document.getElementById('tabgo').disabled = false;
};
})
When I set a break on the .disabled = false line, run the code, and go to the console and inspect the element I see this:
…which doesn’t jibe with the displayed or operational state of the tab. Further, setting the disabled property to false does not re-enable the tab. Not sure what I’m missing here. Any suggestions? Thanks in advance…