AngularJS Validation
AngularJS is an open source script language. AngularJS validation has fast processing compared to other validations. Hence, AngularJS works on the client-side form validation. One of the best features of AngularJS is the form validation.
Validate data
These are some functions, which can be used to track the error.
- $dirty – It is used by the user to make some changes.
- $invalid – It is used to identify the value entered is invalid. 
- $error – It is used to exact the error.
- $Valid- These validations in the form currently evaluates to correct. 
Let’s start to our program
Here, I am using Visual Studio 2013 to write an AngularJS program. You can write some other text such as (sublime text, Notepad++,Text….). Thus, many text options are available to write the program.
 Step 1: Open Visual Studio, click New=>Project.
![1]() 
Step 2: Now, select ASP.NET Web Application. Create a project name. Here, our project name is “FormValidation “ and click OK button.
![2]() Step 3:
 Step 3: Select MVC template and click OK button. 
![3]() Step 4:
 Step 4: Here, right click on the project name and add=> HTML page.
![4]() Step 5:
 Step 5: Now, right click on the project name. Click on NuGet packages.
![5]() Step 6:
 Step 6: You need to search AnjularJS in the TextBox. nstall AngularJS. 
![6]() Step 7:
 Step 7: In this section , I am using CSS and AngularJS Validation coding.
 
 Output: Run the Application and show the output. 
![output 1]() 
Here, AngularJS validation is working properly. 
![output 2]() 
Here, you can see the range validation in AngularJS.
![output 3]() 
Finally, our output is successfully shown in the figure, given below:
![output 4]()