Skip to content

Instantly share code, notes, and snippets.

@mattraykowski
Created January 10, 2013 17:41
Show Gist options
  • Save mattraykowski/4504114 to your computer and use it in GitHub Desktop.
Save mattraykowski/4504114 to your computer and use it in GitHub Desktop.
app.directive('draggableTask', function() {
return {
restrict: 'A',
replace: false,
transclude: false,
link: function(scope, element, attrs) {
attrs.$observe('taskContainer', function() {
console.log("task container: " + attrs.taskContainer);
element.draggable({
containment: '#' + attrs.taskContainer
});
});
//
//console.log(attrs['task-container']);
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment