Re:Ractive.js
by tbranyen on Thursday July 25, 2013 @02:41AM
(#6101217)
I'm currently using this style in a RequireJS/Angular project. Everything works great, but it's pretty ugly. We should strive to not write ugly shit, but good clean expressive code. This is so non-standard it hurts. There are plenty of other ways the Angular team could have gone; CommonJS or AMD would have been better choices IMO.
[ Parent
| on HN ]
Re:Ractive.js
by likeclockwork on Thursday July 25, 2013 @08:39AM
(#6102098)
Use ngmin, it converts into the ugly style.
https://github.com/btford/ngmin
There's also a grunt plugin. https://github.com/btford/grunt-ngmin
ngmin doesn't work with r.js. My response was about using it with AMD modules. I know there were a few efforts to get ngmin/r.js working together, but last time I searched around I didn't see anything promising.
Re:Ractive.js
by likeclockwork on Thursday July 25, 2013 @12:50PM
(#6103372)
I wonder how much work it would be to actually integrate DI/module system and RequireJS.