mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
module.exports = function angularDraggabillyDirective(DraggabillyService) {
|
|
return {
|
|
restrict: 'AE',
|
|
link: function (scope, element, attrs) {
|
|
var parsedAttrs = $parse(attrs.angularDraggabilly)()
|
|
if (typeof parsedAttrs !== 'object') {
|
|
parsedAttrs = {}
|
|
}
|
|
|
|
var options = angular.extend({
|
|
}, parsedAttrs)
|
|
|
|
var draggie = new DraggabillyService(element[0], options)
|
|
}
|
|
}
|
|
}
|