5 ms·
Correct, the particular system I encountered this minification issue has an Ant-based build (which calls r.js for concatenation and minification). I'll have to
by SanderMak 13y ago
Correct, the particular system I encountered this minification issue has an Ant-based build (which calls r.js for concatenation and minification).
I'll have to check on your compile suggestion. I tried lots of things, including using the postLink etc. Do you have an example?
- marknutter 13y agoHere'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.