blob: 20536941af5a1eeae4c799e5116c463173f4afdc [file] [log] [blame]
module.exports =
function angularDraggabillyDirective(DraggabillyService, $parse) {
return {
restrict: 'AE',
link: function(scope, element, attrs) {
var parsedAttrs = $parse(attrs.angularDraggabilly)()
if (typeof parsedAttrs !== 'object') {
parsedAttrs = {}
}
var options = angular.extend({
}, parsedAttrs)
/* eslint no-unused-vars: 0 */
var draggie = new DraggabillyService(element[0], options)
}
}
}