fix(native-spinner): update pluginRef (#1859)

Wrong pluginRef causes errors:
Native: tried calling SpinnerDialog.show, but the SpinnerDialog plugin is not installed.
Install the SpinnerDialog plugin: 'ionic cordova plugin add cordova-plugin-native-spinner'

Fix pluginRef to work properly.
This commit is contained in:
Fatih Kızmaz 2017-08-24 02:41:03 +03:00 committed by Ibby Hadeed
parent 39ef066875
commit 262e18f409

View File

@ -29,7 +29,7 @@ export interface SpinnerDialogIOSOptions {
@Plugin({ @Plugin({
pluginName: 'SpinnerDialog', pluginName: 'SpinnerDialog',
plugin: 'cordova-plugin-native-spinner', plugin: 'cordova-plugin-native-spinner',
pluginRef: 'window.plugins.spinnerDialog', pluginRef: 'SpinnerDialog',
repo: 'https://github.com/greybax/cordova-plugin-native-spinner', repo: 'https://github.com/greybax/cordova-plugin-native-spinner',
platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows'] platforms: ['Android', 'iOS', 'Windows Phone 8', 'Windows']
}) })