|
|
@ -1,14 +1,15 @@ |
|
|
|
angular.module('app.savedEvents', ['pascalprecht.translate']) |
|
|
|
|
|
|
|
.controller('SavedEventsCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) { |
|
|
|
.controller('SavedEventsCtrl', function($scope, $http, $ionicModal, |
|
|
|
$timeout, $ionicLoading, $filter, $cordovaSocialSharing) { |
|
|
|
|
|
|
|
$scope.share = function(event){ |
|
|
|
var message = event.description; |
|
|
|
var subject = event.title; |
|
|
|
var file= ['','']; |
|
|
|
var message = "[" + event.title + "]" + event.description; |
|
|
|
/*var subject = event.title; |
|
|
|
var file= ['',''];*/ |
|
|
|
var link = "http://duckduckgo.com"; |
|
|
|
$cordovaSocialSharing |
|
|
|
.share(message, subject, file, link) // Share via native share sheet
|
|
|
|
.share(message, link) // Share via native share sheet
|
|
|
|
.then(function(result) { |
|
|
|
// Success!
|
|
|
|
}, function(err) { |
|
|
|