我如何可以調用這個函數通過一個按鈕通過一個按鈕調用函數
module.controller('MyCtrl', function($scope, $cordovaSocialSharing) {
$cordovaSocialSharing
.share(message, subject, file, link) // Share via native share sheet
.then(function(result) {
// Success!
}, function(err) {
// An error occured. Show a message to the user
});
})
'ng-click =「myFunctionName()」'括號括起來 – floribon
@floribon感謝heads.I做了那些改變:) –
你可以放一個完整的代碼示例嗎? – jamil