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.

[code lang=”js” highlight=”1″]
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="node_modules/angular/angular.min.js"></script>
[/code]

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. ?

Front-end Developer. Passionate about designing, digital marketing, writing, and tea. You can connect with me on social media by links given below.

Leave a Reply

Your email address will not be published. Required fields are marked *