News for hackers. Stuff that matters.
Re:AngularStrap gets rewritten - AngularJS 1.2+ native direc... by keda on Tuesday January 07, 2014 @05:19PM (#7020403)
Interesting, how is it different from another (probably more popular) project angular-ui.github.io/bootstrap/. From a quick glance of the code, looks like you have view hardcoded to the js [0]. Is it consider a good practice? Since it'll be loaded regardless if user is going to overwrite it, and increase the size of the js.

Good work, can't wait to see more high quality angular projects.

[0]: https://github.com/mgcrea/angular-strap/blob/master/src/drop...

Re:AngularStrap gets rewritten - AngularJS 1.2+ native direc... by olouv on Friday January 10, 2014 @10:45AM (#7037146)
Author here, it would end up hardcoded anyway as it must be pre-loaded for performance reason.

But indeed, it could be compiled in a separate file to reduce the payload in case you don't use base templates, but at the cost of an extra http request, not sur the trade-of would be worth it.

I may add other build configurations at a later date, but for the sake of simplicity, I think it's best as it is for now.