You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when i use the $cordovaClipboard i am getting this error:
module.controller('ClipboardCtrl', function($scope, $cordovaClipboard) {
$cordovaClipboard.paste().then(function (result) {
// success, use result
}, function () {
// error
});
});
TypeError: Cannot call method 'paste' of undefined
at Object.paste (file:///android_asset/www/js/ng-cordova.min.js:7:15146)
at l.$scope.mypastefun(file:///android_asset/www/js/myCtrl.js:54:22)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:229:303
at file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:388:5713
at l.$eval (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:156:305)
at l.$apply (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:157:6)
at HTMLButtonElement. (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:388:5695)
at HTMLButtonElement.c (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:63:389)
at n (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:22:384)
at t (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:22:216) ionic.bundle.min.js:133
(anonymous function) ionic.bundle.min.js:133
(anonymous function) ionic.bundle.min.js:107
l.$apply ionic.bundle.min.js:157
(anonymous function) ionic.bundle.min.js:388
c ionic.bundle.min.js:63
n ionic.bundle.min.js:22
t ionic.bundle.min.js:22
l ionic.bundle.min.js:22
t ionic.bundle.min.js:22
l ionic.bundle.min.js:22
This happens only on the build service and not in the CLI.
The text was updated successfully, but these errors were encountered:
i am using ionic ngCordova extention set and building my app using the phonegap build service.
phonegap version 3.7.0
i have added the plugin like so and it works great with the JavaScript way:
but when i use the $cordovaClipboard i am getting this error:
TypeError: Cannot call method 'paste' of undefined
at Object.paste (file:///android_asset/www/js/ng-cordova.min.js:7:15146)
at l.$scope.mypastefun(file:///android_asset/www/js/myCtrl.js:54:22)
at file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:229:303
at file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:388:5713
at l.$eval (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:156:305)
at l.$apply (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:157:6)
at HTMLButtonElement. (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:388:5695)
at HTMLButtonElement.c (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:63:389)
at n (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:22:384)
at t (file:///android_asset/www/lib/ionic/js/ionic.bundle.min.js:22:216) ionic.bundle.min.js:133
(anonymous function) ionic.bundle.min.js:133
(anonymous function) ionic.bundle.min.js:107
l.$apply ionic.bundle.min.js:157
(anonymous function) ionic.bundle.min.js:388
c ionic.bundle.min.js:63
n ionic.bundle.min.js:22
t ionic.bundle.min.js:22
l ionic.bundle.min.js:22
t ionic.bundle.min.js:22
l ionic.bundle.min.js:22
This happens only on the build service and not in the CLI.
The text was updated successfully, but these errors were encountered: