[Solved] Uncaught Reference Error: angular is not defined

Last Reply 3 months ago By SUJAYS

Posted 3 months 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 3 months ago

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

So place the AngularJS script before the CustomDet script.


Posted 3 months 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>