How to solve “Angular is not defined error” in Angular Js


If you are new to angular js you will definitely have this type of error in the console. Here I will tell you the steps to remove “Angular is not defined” error in angular js. So, let’s start.

Step 1: Check if you correctly define your angular module and controller. Check also with your spelling mistakes and semi-colons.

Step 2: Most of the time this type of error happens when you include your javascript file before the angular js file shown below.

<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>

Place you angular js file before your controller js and module js file.
And that’s all. Now you will receive no error. Happy Coding. 😊

Next articleHow to Reload web browser automatically when code changes [npm]
Hi Geeks, It's me, Jagdish Patil. I am a co-founder of this blog. Passionate about designing, digital marketing, music, and tea! You can connect with me on social media by links given here.


Please enter your comment!
Please enter your name here