|
@ -1,14 +1,15 @@ |
|
|
angular.module('app.savedEvents', ['pascalprecht.translate']) |
|
|
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){ |
|
|
$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"; |
|
|
var link = "http://duckduckgo.com"; |
|
|
$cordovaSocialSharing |
|
|
$cordovaSocialSharing |
|
|
.share(message, subject, file, link) // Share via native share sheet
|
|
|
|
|
|
|
|
|
.share(message, link) // Share via native share sheet
|
|
|
.then(function(result) { |
|
|
.then(function(result) { |
|
|
// Success!
|
|
|
// Success!
|
|
|
}, function(err) { |
|
|
}, function(err) { |
|
|