Angular (2024)

Class Overview

class Validators {

staticrequired(control: AbstractControl) : {[key: string]: boolean}
staticrequiredTrue(control: AbstractControl) : {[key: string]: boolean}
staticminLength(minLength: number) : ValidatorFn
staticmaxLength(maxLength: number) : ValidatorFn
staticpattern(pattern: string|RegExp) : ValidatorFn
staticnullValidator(c: AbstractControl) : {[key: string]: boolean}
staticcompose(validators: ValidatorFn[]) : ValidatorFn
staticcomposeAsync(validators: AsyncValidatorFn[]) : AsyncValidatorFn

}

Class Description

Provides a set of validators used by form controls.

A validator is a function that processes a FormControl or collection ofcontrols and returns a map of errors. A null map means that validation has passed.

Example

var loginControl = new FormControl("", Validators.required)

Static Members

required(control: AbstractControl) : {[key: string]: boolean}

Validator that requires controls to have a non-empty value.

requiredTrue(control: AbstractControl) : {[key: string]: boolean}

Validator that requires control value to be true.

minLength(minLength: number) : ValidatorFn

Validator that requires controls to have a value of a minimum length.

maxLength(maxLength: number) : ValidatorFn

Validator that requires controls to have a value of a maximum length.

pattern(pattern: string|RegExp) : ValidatorFn

Validator that requires a control to match a regex to its value.

nullValidator(c: AbstractControl) : {[key: string]: boolean}

No-op validator.

compose(validators: ValidatorFn[]) : ValidatorFn

Compose multiple validators into a single function that returns the unionof the individual error maps.

composeAsync(validators: AsyncValidatorFn[]) : AsyncValidatorFn

exported from @angular/forms/index,defined in @angular/forms/src/validators.ts

Angular (2024)
Top Articles
What is Microsoft Store?
What is Snowflake | A Comprehensive Overview
7 C's of Communication | The Effective Communication Checklist
Artem The Gambler
UPS Paketshop: Filialen & Standorte
Trabestis En Beaumont
How Much Does Dr Pol Charge To Deliver A Calf
Gabriel Kuhn Y Daniel Perry Video
Usborne Links
Senior Tax Analyst Vs Master Tax Advisor
Prosper TX Visitors Guide - Dallas Fort Worth Guide
Santa Clara College Confidential
Fusion
Acts 16 Nkjv
Merlot Aero Crew Portal
Vocabulario A Level 2 Pp 36 40 Answers Key
Fallout 4 Pipboy Upgrades
Scentsy Dashboard Log In
Betonnen afdekplaten (schoorsteenplaten) ter voorkoming van lekkage schoorsteen. - HeBlad
Healing Guide Dragonflight 10.2.7 Wow Warring Dueling Guide
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Straight Talk Phones With 7 Inch Screen
Wausau Obits Legacy
Candy Land Santa Ana
Ratchet & Clank Future: Tools of Destruction
Maxpreps Field Hockey
Red8 Data Entry Job
Www Va Lottery Com Result
Panola County Busted Newspaper
Mals Crazy Crab
Meta Carevr
Harbor Freight Tax Exempt Portal
Section 408 Allegiant Stadium
Puffin Asmr Leak
Fox And Friends Mega Morning Deals July 2022
Yoshidakins
Rocketpult Infinite Fuel
10 games with New Game Plus modes so good you simply have to play them twice
Myanswers Com Abc Resources
Cal Poly 2027 College Confidential
Topos De Bolos Engraçados
Japanese Big Natural Boobs
Wal-Mart 140 Supercenter Products
R: Getting Help with R
Content Page
Brauche Hilfe bei AzBilliards - Billard-Aktuell.de
Abigail Cordova Murder
53 Atms Near Me
How to Do a Photoshoot in BitLife - Playbite
Pelican Denville Nj
Marion City Wide Garage Sale 2023
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5951

Rating: 4.9 / 5 (69 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.