angular is not defined at ui-bootstrap-tpls-0.6.0.js

Posted by Kasani007 under AngularJS 1x on 4/14/2017 | Points: 10 | Views : 4390 | Status : [Member] | Replies : 1
i got this error
Uncaught ReferenceError: angular is not defined
at ui-bootstrap-tpls-0.6.0.js:1

when i am trying to run my application ?




Responses

Posted by: Kasani007 on: 4/14/2017 [Member] Starter | Points: 25

Up
0
Down
This error came because of adding the ui-bootstrap-tpls-0.6.0.js before the 'angular.js' script in index.html file..
i.e.,
<script type="text/javascript" src="angular.min.js"></script>
<script type="text/javascript" src="ui-bootstrap-tpls-0.6.0.js"></script>
now,after keeping the 'ui-bootstrap-tpls-0.6.0.js' below the angularjs.min.js ,, it works fine without error message
i.e.,
<script type="text/javascript" src="ui-bootstrap-tpls-0.6.0.js"></script>
<script type="text/javascript" src="angular.min.js"></script>

Kasani007, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response