code: function(object, pathStr) {
      var obj;
      if (!object || !angular.isObject(object))
          return;
  
      //if the key is not a sting then we already have the value
      if ((pathStr === null) || !angular.isString(pathStr)) {
        return pathStr;
      }
  
      obj = object;
      pathStr.split('.').forEach(function(value) {
        if (obj) {
          obj = obj[value];
        }
      });
  
      return obj;
    }
docs: /*
  For parsing paths to a field in an object
  
  Example:
  var obj = {
  bike:{
  1: 'hi'
  2: 'foo'
  }
  };
  _getObjectValue(obj,"bike.1") returns 'hi'
  this is getPath in ui-gmap