social-share.directive.js
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
(function() {
'use strict';
angular
.module('dialoga')
.directive('socialShare', socialShare);
/** @ngInject */
function socialShare() {
var directive = {
restrict: 'E',
templateUrl: 'app/components/social-share/social-share.html',
scope: {
socialVia: '=',
socialUrl: '=',
socialImage: '=',
socialText: '=',
arrowClass: '@'
},
controller: SocialShareController,
controllerAs: 'vm',
bindToController: true
};
return directive;
/** @ngInject */
function SocialShareController($log) {
$log.debug('SocialShareController');
var vm = this;
vm.socialVia = vm.socialVia || "687948707977695"; // 476168325877872
vm.socialUrl = vm.socialUrl || "http://dialoga.gov.br/";
vm.socialImage = vm.socialImage || "http://dialoga.gov.br/images/logo.png";
vm.socialText = vm.socialText || "Conheça o Dialoga Brasil. Dialoga Brasil | O País fica melhor quando VOCÊ PARTICIPA.";
}
}
})();