Hi,
I can’t share using Ionic and I need some help from you guys.
My controller looks like this:
.controller(‘MainCtrl’, function($scope, $cordovaSocialSharing){
ionic.Platform.ready(function() {
$scope.share = function() {
alert("Share");
$cordovaSocialSharing.share('This is my message', 'Subject', null, 'http://www.mylink.com');
}
});
In view, I have button:
<button ng-click="share()">Click me!</button>
When I click in the browser I get error like: Cannot read property ‘socialsharing’ of undefined
I suppose I get this error because I’m testing in the browser. I tried to click a button on my mobile phone using Ionic View but when I click nothing happen. What is the problem?
Thanks!