How can I reload all the controllers with Angular?

0

Hi, I'm doing an app with Ionic1 and Angular1 and I want to reload all the controllers again when I log out. Thanks.

    angular
    .module('starter')
    .controller('ProfilCtrl', ProfilCtrl);
       function ProfilCtrl($scope){
       var auth = uid;
       $scope.logout = function(){
        $state.go('welcome');
       }
    }
    
asked by Eric Retamero 17.12.2016 в 18:19
source

1 answer

0

As a result of your comment, it is not necessary to reload the drivers if not, rather to clean or delete the value of uid once you close session.

$scope.cerrarSession = function(){
    uid = "";
}

Depending on your structure, if you put more details on how you generate that uid , as you close the session.

    
answered by 17.12.2016 / 18:57
source