Call Us Now!
Velachery: +91 9884412301 | OMR: +91 9600112302
info@credosystemz.com
AngularJS Training in ChennaiAngularJS Training in Chennai
  • Home
  • Course Content
  • Realtime Projects
  • Interview Q&A
  • Contact Us
  • Home
  • Course Content
  • Realtime Projects
  • Interview Q&A
  • Contact Us

Blog

  • Home
  • Blog
  • Amazing Form Validation by using AngularJS

Amazing Form Validation by using AngularJS

  • Posted by admin
  • Categories Blog
  • Date March 20, 2019
  • Comments 0 comment

AngularJS is a client side scripting language and it’s providing you an Amazing Form Validation. You don’t’ need write any too much of code for the form validations. AngularJS provides you set of inbuilt states of form, inputs and CSS classes. By using the state you can implement form Validation.

AngularJS always have the information about your form and input, if you bind the information, it will give you the exact state of form and inputs.

To know more about complete collection of Form Validation and other stuffs in AngularJS please visit AngularJS All Stuffs

Here you go for the lists of states,

Input States

Input elements having the following states,

  • $untouched – Notifies about The field has not been touched yet.
  • $touched – Notifies about The field has been touched.
  • $pristine – Notifies about The field has not been modified yet.
  • $dirty – Notifies about The field has been modified.
  • $invalid – Notifies about The field is not valid.
  • $valid – Notifies about The field is valid.
  • $error – Notifies about whether field has any errors.

The above state values are Boolean values.

 

How to get input state values?

Getting the above state value is very easy, Here is the syntax.

{{YourFormName.YourInputName.$YourState}}

For Example,

{{formname.inputName.$touched}} – It will return true value, if the input box has been touched also return false value, if the box yet not been touched.

Same like the above you can try all the states.

Form States

Form having the following states,

  • $pristine – Notifies about None of form fields have been modified yet.
  • $dirty – Notifies about One or more form fields have been modified.
  • $invalid – Notifies about The form content is not valid.
  • $valid – Notifies about The form content is valid.
  • $submitted – Notifies about The form is submitted.

The above form state values are Boolean values.

 

How to get Form state values?

Getting the above form state value is very easy, Here is the syntax.

{{YourFormName.$YourState}}

For Example,

{{formname.$valid}} – It will return true value, if the form has valid content also return false value, if the form doesn’t meet the specifications.

Same like the above you can try all the states.

Explore more about AngulrJS, Here you go for complete topics of AngularJS Angularjs Complete Topics

  • Share:
admin

Previous post

What is Services and Factory in AngularJS ?
March 20, 2019

Next post

Types of Filters in AngularJS
March 20, 2019

You may also like

AngularJS Introduction
20 March, 2019

Here is the Introduction of the Powerful and Super heroic Framework – AngularJS. You can find the following details here. Introduction of Angularjs. Why AngularJS ? Features of AngularJS. Reason to Learn AngularJS. Disadvantages of AngularJS. To know about the …

5 Main pillars of AngularJS
20 March, 2019

Here is the 5 Main pillars of AngulaJS. These are very important components to develop a powerful and Rich web applications in AngularJS. Lets Take a glance about the 5 Pillars of AngularJS. Directives Controllers Scopes Services Dependency Injection Please …

Top 10 Directives in AngularJS
20 March, 2019

Directives are the normal HTML Syntax. AngularJS allows you to extend existing HTML syntax with new attributes called as Directives. AngularJS comes with set of inbuilt Directives and all the Directives has individual behaviors. All the Directives are starts with …

Leave A Reply Cancel reply

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

Customer reviews across the Internet

CREDO SYSTEMZ5 Star Rating: Recommended - Best IT Training in Chennai
5 out of 5 based on 16224 reviews

Sulekha        5 Star Rating: Recommended - Best IT Training in Chennai

Yet5               5 Star Rating: Recommended - Best IT Training in Chennai

Facebook      5 Star Rating: Recommended - Best IT Training in Chennai

Google+        5 Star Rating: Recommended - Best IT Training in Chennai

Justdial         5 Star Rating: Recommended - Best IT Training in Chennai

Thinkvidya   5 Star Rating: Recommended - Best IT Training in Chennai

CREDO SYSTEMZ – VELACHERY

New # 30, Old # 16A, Third Main Road,
Rajalakshmi Nagar, Velachery,
(Opp. to Murugan Kalyana Mandapam),
Chennai - 600 042.
Mobile: +91 9884412301
Email: info@credosystemz.com
Web: www.credosystemz.com

CREDO SYSTEMZ – OMR

Plot No.8, Vinayaga Avenue,
Rajiv Gandhi Salai, (OMR),
Okkiampettai,
Landmark - Okkiyampet Bus Stop,
Next to Buhari Hotel,
Chennai – 600 097.
Mobile: +91 9600112302

TRENDING COURSES

  • Python Training in Chennai
  • Data Science Training in Chennai
  • AWS Training in Chennai
  • Big Data Hadoop Training in Chennai
  • Machine Learning Training in Chennai
  • Angular Training in Chennai
  • Mean Stack Training in Chennai
  • RPA Training in Chennai
  • DevOps Training in Chennai
  • R Programming Training in Chennai
  • Microsoft Azure Training

Copyright 2022 Angularjstraininginchennai.in | All Rights Reserved