code: function(a, b) {
      a = a || {};
      b = b || {};
      return a.name === b.name && angular.equals(a.params, b.params);
    }
docs: Compare two states, compares values.
  
  @return {Boolean} True if states are the same, false if states are different