mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
refactor(uptime): beautify
This commit is contained in:
parent
e6f6158b43
commit
b3082bf5ac
@ -1,5 +1,5 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
/**
|
||||
* @name Uptime
|
||||
@ -15,8 +15,8 @@ import {Cordova, IonicNativePlugin, Plugin} from '@ionic-native/core';
|
||||
* ...
|
||||
*
|
||||
* this.uptime.getUptime()
|
||||
* .then((uptime: string) => console.log(uptime))
|
||||
* .catch((error: any) => console.log(error));
|
||||
* .then(uptime => console.log(uptime))
|
||||
* .catch(error => console.log(error));
|
||||
*
|
||||
* ```
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user