I'm quite new to angularjs, and going to use angular + bootstrap in the project, so I was thinking the steps should be like this
1. import angular.js
2. import bootstrap.js
3. import bootstrap.css
However I found there is an angular-ui bootstrap module in angular, so I tested to create a dropdown menu in both way, they all work very well, I guess angular-ui should be the recommended way, but why shall I use angular-ui bootstrap rather than import bootstrap.js directly?
Thanks in advance!
bootstrap.jsis NOT recommended. You will have to do all the data binding manually, by using custom directives plus the bloat to have to includebootstrap.jssince theangular-ui.jslibrary is even more compact than its original since it was rebuild from scratch. You can even stop includingjquery.jsif usingangular-ui.jsbootstrap.jsuses raw jQuery, which doesn't play well with Angular. Don't use them together.