At the moment, you can get multiple items back from localForage by passing an array to the getItem method. That will return an array of values indexed to the key. It would be nice to be able to support getting back an object with keys, like how $q.all works. Something like:
$localForage.getItem({
someKey: 'someKey',
differentObjectKey: 'someOtherKey'
})
.then(({someKey, differentObjectKey}) => {
// Do something with someKey and differentObjectKey here
});
At the moment, you can get multiple items back from localForage by passing an array to the
getItemmethod. That will return an array of values indexed to the key. It would be nice to be able to support getting back an object with keys, like how$q.allworks. Something like: