src/services/state-router.js
function(a, b) {
    a = a || {};
    b = b || {};
    return a.name === b.name && angular.equals(a.params, b.params);
  }
function(a, b) {
    a = a || {};
    b = b || {};
    return a.name === b.name && angular.equals(a.params, b.params);
  }
function ( a , b ) { a = a || { } ; b = b || { } ; return a . name === b . name && angular . equals ( a . params , b . params ) ; }
Compare two states, compares values.

@return {Boolean} True if states are the same, false if states are different
Compare two states compares values .