Skip to content

Instantly share code, notes, and snippets.

View alcance's full-sized avatar
💭
🚀

Iván Martínez Agüero alcance

💭
🚀
View GitHub Profile
angular.module('myApp').directive('addthisToolbox', ['$timeout', function($timeout) {
return {
restrict : 'A',
transclude : true,
replace : true,
template : '<div ng-transclude></div>',
link : function($scope, element, attrs) {
$timeout(function () {
addthis.init();
addthis.toolbox($(element).get(), {}, {