Hacker News new | ask | show | jobs
by keda 4539 days ago
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...

1 comments

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.