updated example

This commit is contained in:
mru 2017-02-17 09:50:19 +01:00
parent 1e1920f524
commit ba0f6ec6e5

View File

@ -10,15 +10,8 @@ import { Observable } from 'rxjs/Observable';
* ``` * ```
* import { AppPreferences } from 'ionic-native'; * import { AppPreferences } from 'ionic-native';
* *
* AppPreferences.fetch(prefsRead, prefsErr, 'key'); * AppPreferences.fetch('key').then((res) => { console.log(res); });
* *
* prefsRead(value) {
* console.log(value);
* }
*
* prefsErr(error) {
* console.log(error);
* }
* *
*/ */
@Plugin({ @Plugin({