MinLengthValidator

MinLengthValidator

Stable Directive

Class Overview

class MinLengthValidator implements Validator, 
  minlength : string
  ngOnChanges(changes: SimpleChanges) : void
  validate(c: AbstractControl) : ValidationErrors|
}

Selectors

[minlength][formControlName]

[minlength][formControl]

[minlength][ngModel]

Class Description

A directive which installs the MinLengthValidator for any formControlName, formControl, or control with ngModel that also has a minlength attribute.

Class Details

minlength : string
ngOnChanges(changes: SimpleChanges) : void
validate(c: AbstractControl) : ValidationErrors|

exported from forms-index, defined in forms/src/directives/validators.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/forms/index/MinLengthValidator-directive.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部