mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
chore(): update templates
This commit is contained in:
parent
6811750711
commit
ab782f7093
@ -1,4 +1,4 @@
|
|||||||
import { Plugin } from '@ionic-native/core';
|
import { Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -25,6 +25,6 @@ import { Injectable } from '@angular/core';
|
|||||||
platforms: []
|
platforms: []
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class $PluginName {
|
export class $PluginName extends IonicNativePlugin {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* - Remove this note
|
* - Remove this note
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty } from '@ionic-native/core';
|
import { Plugin, Cordova, CordovaProperty, CordovaInstance, InstanceProperty, IonicNativePlugin } from '@ionic-native/core';
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ import { Observable } from 'rxjs/Observable';
|
|||||||
install: '', // OPTIONAL install command, in case the plugin requires variables
|
install: '', // OPTIONAL install command, in case the plugin requires variables
|
||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class $PluginName {
|
export class $PluginName extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function does something
|
* This function does something
|
||||||
|
Loading…
Reference in New Issue
Block a user