[Solved] Uncaught Reference Error: angular is not defined

Last Reply 29 days ago By SUJAYS

Posted 29 days ago

Uncaught ReferenceError: angular is not defined

Angularjs is not added even when the file is included in Index file.

<script src="~/Scripts/CustomDet.js"></script>
<script src="~/Scripts/AngularJS.js"></script>


Posted 29 days ago

You had palced your AngularJS script tag after the CustomDet that references AngularJS.

So place the AngularJS script before the CustomDet script.

Posted 29 days ago

Local Angularjs is not working so I have inserted online Angular JS

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<script src="~/Scripts/CustomerAngular.js"></script>