ionic-core.js
function(key, object) {

          // Convert object to JSON and store in localStorage
          var json = JSON.stringify(object);
          persistenceStrategy.set(key, json);

          // Then store it in the object cache
          objectCache[key] = object;
        }
function(key, object) {

          // Convert object to JSON and store in localStorage
          var json = JSON.stringify(object);
          persistenceStrategy.set(key, json);

          // Then store it in the object cache
          objectCache[key] = object;
        }
function ( key , object ) { // Convert object to JSON and store in localStorage var json = JSON . stringify ( object ) ; persistenceStrategy . set ( key , json ) ; // Then store it in the object cache objectCache [ key ] = object ; }
Stores an object in local storage under the given key
Stores an object in local storage under the given key