UI Bootstrap not loading in AngularJS

If you're adding UI Bootstrap to your AngularJS project, and you're getting an "angular is not defined" and/or "Failed to instantiate module ui.bootstrap" error, make sure you are including the ui-bootstrap.js script file after the angular.js script file in your html.

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.10/angular.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.10.0/ui-bootstrap.js"></script>
Aditi Apr 23, 2014

I have sequenced file this only still i am getting this error. Can anyone help?

kirtesh Jul 24, 2014

I am also getting this error not able to resolve . let me know if you were able to solve

PK Jain Dec 17, 2015

Thanks .....working fine now

Leave a Comment