Angular Gives Blank Page When I Use Ui.bootstrap In My Controller
I am trying to use the the angular bootstrap when i try to add the dependency in my controller and start the server with grunt serve i get a blank page.Please have a look at the bo
Solution 1:
The reason people are using angular-ui-bootstrap is to avoid using jquery and bootstrap.js (which relies on jquery) and opt for an Angular solution. So my first attempt at getting this app working is to
- Remove
jquery.js,jquery-ui.js, andbootstrap.jsout of the page. - Start from just plain Angular + Angular UI Bootstrap first. Try some examples from http://angular-ui.github.io/bootstrap/ if you want to get familiar with the directive usage.
- Then, if you really need to, just add
jqueryback in later. But from my experience, you won't really need to if you stick to Angular way of coding. If you come from a strongjquerybackground and just start coding on Angular, I recommend you read this: https://stackoverflow.com/a/15012542/3788115
Solution 2:
add ['ui.bootstrap'] on the main app.js
Solution 3:
Edit: Corrected in the comments.
Use Chrome Canary for easier debugging, you will see the full error message instead of Uncaught object.
Post a Comment for "Angular Gives Blank Page When I Use Ui.bootstrap In My Controller"