mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(intel-security): fix references (#1305)
corrected the documentation to correct the read code snippet. As detailed here: https://forum.ionicframework.com/t/crypto-libraries-with-ionic-2/84629
This commit is contained in:
parent
f4c4317f16
commit
b005efc52b
@ -49,18 +49,17 @@ export interface IntelSecurityDataOptions {
|
|||||||
* let storageID = 'id';
|
* let storageID = 'id';
|
||||||
*
|
*
|
||||||
* this.intelSecurity.data.createFromData({ data: 'Sample Data' })
|
* this.intelSecurity.data.createFromData({ data: 'Sample Data' })
|
||||||
* .then((instanceID: Number) => this.IntelSecurity.storage.write({ id: storageId, instanceID: instanceID }))
|
* .then((instanceID: Number) => this.intelSecurity.storage.write({ id: storageId, instanceID: instanceID }))
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch((error: any) => console.log(error));
|
||||||
*
|
*
|
||||||
* this.intelSecurity.storage.read({id: storageID })
|
* this.intelSecurity.storage.read({id: storageID })
|
||||||
* .then(this.intelSecurity.data.getData)
|
* .then((instanceID: number) => this.intelSec.data.getData(instanceID))
|
||||||
* .then((data: string) => console.log(data)) // Resolves to 'Sample Data'
|
* .then((data: string) => console.log(data)) // Resolves to 'Sample Data'
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch((error: any) => console.log(error));
|
||||||
*
|
*
|
||||||
* this.intelSecurity.storage.delete({ id: storageID })
|
* this.intelSecurity.storage.delete({ id: storageID })
|
||||||
* .then(() => console.log('Deleted Successfully'))
|
* .then(() => console.log('Deleted Successfully'))
|
||||||
* .catch((error: any) => console.log(error));
|
* .catch((error: any) => console.log(error));
|
||||||
*
|
|
||||||
* ```
|
* ```
|
||||||
* @classes
|
* @classes
|
||||||
* IntelSecurityData
|
* IntelSecurityData
|
||||||
|
Loading…
Reference in New Issue
Block a user