3 ms·
Just wanted to comment that all the directives from http://angular-ui.github.com/bootstrap/ http://angular-ui.github.com/bootstrap/ are native AngularJS directi
by pkozlowski_os 14y ago
Just wanted to comment that all the directives from http://angular-ui.github.com/bootstrap/ 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 https://github.com/angular-ui/bootstrap/tree/master/template
- jameswyse 14y agoOh wow, that is definitely a better way of doing things. Good stuff!
- lukifer 14y agoAm 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.
- pkozlowski_os 14y agoActually jqLite has 2.36kB when minified / gzipped, check this for more details: https://plus.google.com/104744871076396904202/posts/EgjErc6NdrD 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 http://mathiasbynens.be/demo/jquery-size so at the end of the day this might be a substantial difference.