I have a Windows.Location.reloaded()
and when it does it sends me to the screen of login or does it change my screen, does anyone know how I can solve it?
I hope you can help me. Thanks
I have a Windows.Location.reloaded()
and when it does it sends me to the screen of login or does it change my screen, does anyone know how I can solve it?
I hope you can help me. Thanks
Hi Sebastian, you can use the following method $ state.reload, I'll give you an example and the link where you can consult more about it.
.controller('MyCachedViewCtrl', function($scope){
var initView = function(){...};
//...some stuff...
$scope.$on('$ionicView.beforeEnter', function(){
initView();
});
$scope.refresh = function(){
$state.reload(true);
};});
I hope it helps you.
what you need is to reload the state again, a solution could be:
$window.location.reload(true);
Inside your controller, add $ window.
function tuControlador($window){
}
This what it does is to reload your state in which you find yourself. I hope to help you