iKnowMagic
9/29/2016 - 5:24 PM

Running a function everytime the $state changes

Running a function everytime the $state changes

Running a function everytime the $state changes

.run(function($rootScope, cleanModals) {
  $rootScope.$on('$stateChangeSuccess', function() {
    cleanModals.clean();
  });
})