Validating a form
Validators are passed as keyword arguments, a list of built-in validators can be found In most frameworks you have some kind of function or method which get’s a request object, values from the route and returns a context, a template or even the response.For this you are going to need custom form field validators.A form field validator is a function that takes your form control — the input field — and validates the value of that form control against a certain condition.We'll be talking more on forms using Angular (just like our other article: Submitting AJAX Forms: The Angular JS Way). We'll focus on client side validation and using the built in Angular form properties. See the Pen Angular JS Form Validation by Chris Sevilleja (@sevilayha) on Code Pen Now that we know what we want, let's get to building.
Angular provides properties on forms that help us validate them. We only want it disabled if our form is input field requires a valid email.
Every field gets a label, which is shown to the user of the renderd form.
Validating a form comments