mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
19 lines
500 B
JavaScript
19 lines
500 B
JavaScript
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)
|
|
}
|
|
}
|
|
}
|