News for hackers. Stuff that matters.
Re:AngularJS directives for Twitter's bootstrap by pkozlowski_os on Monday February 11, 2013 @04:52AM (#5200094)
Just wanted to comment that all the directives from http://angular-ui.github.com/bootstrap/ are native AngularJS directives. They don't require _any_ 3rd party JavaScript dependency (jQuery, bootstrap's JS etc.). Just take Angular, 5kB library (minified, gzipped) and you are ready to go!

On top of this all those directives are fully customizable as (almost) no DOM manipulation happens in directives, markup is extracted to separate templates: https://github.com/angular-ui/bootstrap/tree/master/template

Re:AngularJS directives for Twitter's bootstrap by lukifer on Monday February 11, 2013 @07:26AM (#5200439)
Am I missing something? Angular contains its own "jQuery Lite", and appears to be about 30kb gzipped.

Still, it's neat that no additional JS is required.

Re:AngularJS directives for Twitter's bootstrap by pkozlowski_os on Monday February 11, 2013 @07:35AM (#5200466)
Actually jqLite has 2.36kB when minified / gzipped, check this for more details: https://plus.google.com/104744871076396904202/posts/EgjErc6N...

This is over 13x less as compared to full jQuery (1.9.x): http://mathiasbynens.be/demo/jquery-size

so at the end of the day this might be a substantial difference.

Re:AngularJS directives for Twitter's bootstrap by jameswyse on Monday February 11, 2013 @06:39AM (#5200341)
Oh wow, that is definitely a better way of doing things. Good stuff!