( @Paulo Pedroso, Angular).
AngularJS .
, jqLite, JQuery. JQuery, JQuery. .
myApp.directive('jqDrop', ['$rootScope', function ($rootScope) {
return {
restrict: 'A',
link: function (scope, elm, attr) {
$(elm).droppable({
drop: function (event, ui, x) {
},
greedy: false,
over: function (event, ui) {
},
});
}
};
}]);
( , ), , -, .
source
share