Exclude Bootstrap JS to use Angular UI JS

I’ve been struggling to this *tiny* issue in an hour. After stackoverflowing and googling I found that the solution is very simple (and tricky).

Assuming that you guys use Yeoman generator to start a AngularJS project, just add exclude: [‘/bootstrap’] in wiredep block in Grunt.js

// Automatically inject Bower components into the app
wiredep: {
app: {
src: [‘<%= yeoman.app %>/index.html’],
exclude: [‘/bootstrap’], <---- THIS F#CKING LINE
ignorePath: /\.\.\//
},
sass: {
...........

Voila! Bootstrap SASS is still there, and there is no bootstrap javascript files included in index.html.