Articles

Validations in Angular JS

by Sumeet Arora CTO,Evon Technologies

Hello all,

We usually validate our HTML form before submitting it as it's a good practice to do that and to validate the HTML form we can use JavaScript Validation in client side, or we can also use custom JQuery code where we can apply different type logics and Regex to validate the form.

As an example we have following code packet which demonstrate the Validation feature of AngularJS :

<body ng-app="myApp">    <div class="container signInMainDiv">        <div class="table-responsive form-group">            <div ng-controller="AddUserController">                <form name="htmlForm" id="htmlForm" role="form" style="border:none; box-shadow:none;" ng-submit="htmlForm.$valid && addFormDetails(formDetails)">

For more, view the full Blog about Validation in Angular JS visit FindNerd.

FindNerd gives users a special Desktop Recording tool to record and share programming problems with others, and also provide a fantastic platform in the form of forums to ask questions and provide answers of the questions posted on findnerd. Here the most searched topis are related to Android, HTML, iphone, Javascript question and Answers .


Sponsor Ads


About Sumeet Arora Advanced   CTO,Evon Technologies

83 connections, 0 recommendations, 219 honor points.
Joined APSense since, March 31st, 2015, From Dehradun, India.

Created on Dec 31st 1969 18:00. Viewed 0 times.

Comments

No comment, be the first to comment.
Please sign in before you comment.