From c600cd622e5bc15898695055c4357a0d408d5b03 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Wed, 3 May 2017 23:01:28 +0200 Subject: [PATCH] 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 --- src/@ionic-native/plugins/app-preferences/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/app-preferences/index.ts b/src/@ionic-native/plugins/app-preferences/index.ts index 95019a69e..d6c26892a 100644 --- a/src/@ionic-native/plugins/app-preferences/index.ts +++ b/src/@ionic-native/plugins/app-preferences/index.ts @@ -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); }); + * ... + * + * this.appPreferences.fetch('key').then((res) => { console.log(res); }); * - * } * ``` * */