diff --git a/src/@ionic-native/core/decorators.ts b/src/@ionic-native/core/decorators.ts index 797b9382d..e0983440c 100644 --- a/src/@ionic-native/core/decorators.ts +++ b/src/@ionic-native/core/decorators.ts @@ -259,6 +259,7 @@ export function CordovaInstance(opts: any = {}) { */ export function CordovaProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: () => { if (checkAvailability(target, key) === true) { return getPlugin(target.constructor.getPluginRef())[key]; @@ -282,6 +283,7 @@ export function CordovaProperty(target: any, key: string) { */ export function InstanceProperty(target: any, key: string) { Object.defineProperty(target, key, { + enumerable: true, get: function(){ return this._objectInstance[key]; },