src/services/state-router.js
function() {
      var deferred = $q.defer();

      $rootScope.$evalAsync(function() {
        var n = _current.name;
        var p = angular.copy(_current.params);
        if(!_current.params) {
          _current.params = {};
        }
        _current.params.deprecated = true;

        // Notify
        $rootScope.$broadcast('$stateReload', null, _current);

        _changeStateAndBroadcastComplete(n, p).then(function() {
          deferred.resolve();
        }, function(err) {
          deferred.reject(err);
        });
      });

      return deferred.promise;
    }
function() {
      var deferred = $q.defer();

      $rootScope.$evalAsync(function() {
        var n = _current.name;
        var p = angular.copy(_current.params);
        if(!_current.params) {
          _current.params = {};
        }
        _current.params.deprecated = true;

        // Notify
        $rootScope.$broadcast('$stateReload', null, _current);

        _changeStateAndBroadcastComplete(n, p).then(function() {
          deferred.resolve();
        }, function(err) {
          deferred.reject(err);
        });
      });

      return deferred.promise;
    }
function ( ) { var deferred = $q . defer ( ) ; $rootScope . $evalAsync ( function ( ) { var n = _current . name ; var p = angular . copy ( _current . params ) ; if ( ! _current . params ) { _current . params = { } ; } _current . params . deprecated = true ; // Notify $rootScope . $broadcast ( '$stateReload' , null , _current ) ; _changeStateAndBroadcastComplete ( n , p ) . then ( function ( ) { deferred . resolve ( ) ; } , function ( err ) { deferred . reject ( err ) ; } ) ; } ) ; return deferred . promise ; }
Reloads the current state

@return {Promise} A promise fulfilled when state change occurs
Reloads the current state