Monday 3 August 2015

Validations in Angular JS

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 .

No comments:

Post a Comment