docs(app-preferences): unified example (#1456)

I changed the usage part to match the usage part of other plugins 

1. constructor with the private import
2. Call the plugin methods
This commit is contained in:
Daniel Sogl 2017-05-03 23:01:28 +02:00 committed by Ibby Hadeed
parent 14a1cb9ee7
commit c600cd622e

View File

@ -11,11 +11,12 @@ import { Injectable } from '@angular/core';
* ```typescript
* import { AppPreferences } from '@ionic-native/app-preferences';
*
* constructor(private appPreferences: AppPreferences) {
* constructor(private appPreferences: AppPreferences) { }
*
* ...
*
* this.appPreferences.fetch('key').then((res) => { console.log(res); });
*
* }
* ```
*
*/