Angularjs Validation

Google Advertisements

AngularJS Table AngularJS Events

Angularjs Validation

An AngularJS forms and input control can validate input data. It is 100% JavaScript so AngularJS are also use for client side validation.

Example of AngularJS for client side validation


<!DOCTYPE html>

<script src= ""></script>
<h2>Client side Validation Example</h2>

<form ng-app="" ng-controller="ajvalidater" 
name="myForm" novalidate>

<input type="text" name="user" ng-model="user" required>
<span style="color:red" ng-show="myForm.user.$dirty && myForm.user.$invalid">
<span ng-show="myForm.user.$error.required">Username is required.</span>

<input type="email" name="email" ng-model="email" required>
<span style="color:red" ng-show="$dirty &&$invalid">
<span ng-show="$error.required">Email is required.</span>
<span ng-show="$">Invalid email address.</span>

<input type="submit"
ng-disabled="myForm.user.$dirty && myForm.user.$invalid ||$dirty &&$invalid">


function ajvalidater($scope) {
    $scope.user = 'Harry Porter';
    $ = '';



Username is required.

Email is required. Invalid email address.

Note: The HTML form attribute novalidate is used to disable default browser validation.

AngularJS Table AngularJS Events

Google Advertisements

Buy This Ad Space @$50 per Month, Ad Size 600X200 Contact on: or 8076671483

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Cloud computing is the on demand availability of computer system resources, especially data storage and computing power, without direct active management by the user. Cloud Computing Tutorial

College Projects Related to Java, AWT, C Projects for College, C++ Projects for College, Android Projects. Download Java C C++ Projects

Download Projects

Adsense Advertisements

Buy This ads Space 8076671483

Buy This Ad Space @$120 per Month, Ad Size 300X600 Contact on: or 8076671483 Try this Keyword C++ Programs