code: function(name, params) {
        return _changeState(name, params).then(function() {
          $rootScope.$broadcast('$stateChangeComplete', null, _current);
        }, function(err) {
          $rootScope.$broadcast('$stateChangeComplete', err, _current);
        });
      }
docs: 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