Frage

I started using amplifijs and I successfully stored and retrieved my objects in the storage, but I don't know ho to remove them by name.

I used this syntax:

amplify.store("name",{valName1:"val1", ...});
var storage = amplify.store("name");
var val1 = storage.valName1;

How can I remove them by name like?

amplify.remove("name");
War es hilfreich?

Lösung

I found the answer :

amplify.store("name",null);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top