0
How can I hide (and/or change the direction of the Backbutton) when I have a condition in the View?
I’m trying this way:
if (window.localStorage.getItem("fonecedor_carrinho") != '0' && window.localStorage.getItem("fonecedor_carrinho") != null){
$scope.hideBackButton = false;
}else{
$scope.hideBackButton = true;
}
But it doesn’t work. Any suggestions?
It worked, thanks @el Corleone.
– Ramos