docs(AppMinimize): improve example (#1650)

This commit is contained in:
Daniel Sogl 2017-06-06 05:07:41 +02:00 committed by Ibby Hadeed
parent 884cabd301
commit 3cb7d6d4d8

View File

@ -8,17 +8,17 @@ import { Injectable } from '@angular/core';
*
* @usage
* ```typescript
* import { Platfrom } from 'ionic-angular';
* import { AppMinimize } from '@ionic-native/app-minimize';
*
*
* constructor(private appMinimize: AppMinimize) { }
* constructor(private platform: Platform, private appMinimize: AppMinimize) { }
*
* ...
*
* this.plugin.minimize().then(
* success => console.log('Closed'),
* err => console.log('Something went wrong')
* );
* this.platform.registerBackButtonAction(() => {
* this.appMinimize.minimize();
* });
*
* ```
*/