src/services/state-router.js
function(name, params) {
      return _changeState(name, params).then(function() {
        $rootScope.$broadcast('$stateChangeComplete', null, _current);
      }, function(err) {
        $rootScope.$broadcast('$stateChangeComplete', err, _current);
      });
    }
function(name, params) {
      return _changeState(name, params).then(function() {
        $rootScope.$broadcast('$stateChangeComplete', null, _current);
      }, function(err) {
        $rootScope.$broadcast('$stateChangeComplete', err, _current);
      });
    }
function ( name , params ) { return _changeState ( name , params ) . then ( function ( ) { $rootScope . $broadcast ( '$stateChangeComplete' , null , _current ) ; } , function ( err ) { $rootScope . $broadcast ( '$stateChangeComplete' , err , _current ) ; } ) ; }
Internal method to change to state and broadcast completion

@param  {String}  name   A unique identifier for the state; using state-notation including optional parameters
@param  {Object}  params A data object of params
@return {Promise}        A promise fulfilled when state change occurs
Internal method to change to state and broadcast completion