4 ms·
Here's an example using the jQuery UI draggable plugin: http://jsfiddle.net/marknutter/hSbjX/4/ http://jsfiddle.net/marknutter/hSbjX/4/
by marknutter 13y ago
Here's an example using the jQuery UI draggable plugin: http://jsfiddle.net/marknutter/hSbjX/4/ http://jsfiddle.net/marknutter/hSbjX/4/
- SanderMak 13y agoThanks! I also just found out about angular-ui-utils, where they have a generic pass-thru directive for initializing jQuery plugins. Interestingly, they opted to use $timeout inside the compile function: https://github.com/angular-ui/ui-utils/blob/master/modules/jq/jq.js https://github.com/angular-ui/ui-utils/blob/master/modules/j... Wonder why that is, are there cases that would otherwise break?
- marknutter 13y agoI'm not sure, that's a good question.