docs(secure storage): rename item to key (#1445)

This commit is contained in:
Daniel Sogl 2017-04-30 19:18:49 +02:00 committed by Ibby Hadeed
parent 11dbe42a0d
commit 58ad707dc3

View File

@ -80,19 +80,19 @@ export class SecureStorageObject {
* this.secureStorage.create('my_store_name') * this.secureStorage.create('my_store_name')
* .then((storage: SecureStorageObject) => { * .then((storage: SecureStorageObject) => {
* *
* storage.get('myitem') * storage.get('key')
* .then( * .then(
* data => console.log(data), * data => console.log(data),
* error => console.log(error) * error => console.log(error)
* ); * );
* *
* storage.set('myitem', 'myvalue') * storage.set('key', 'value')
* .then( * .then(
* data => console.log(data), * data => console.log(data),
* error => console.log(error) * error => console.log(error)
* ); * );
* *
* storage.remove('myitem') * storage.remove('key')
* .then( * .then(
* data => console.log(data), * data => console.log(data),
* error => console.log(error) * error => console.log(error)