RequiredValidator
디렉티브
안정화
A directive that adds the required validator to any controls marked with the
required attribute. The directive is provided with the NG_VALIDATORS multi-provider list.
required
string | booleanTracks changes to the required attribute bound to this directive.
설명
A directive that adds the required validator to any controls marked with the
required attribute. The directive is provided with the NG_VALIDATORS multi-provider list.
다음 모듈에서 내보냄
사용 시 참고사항
Adding a required validator using template-driven forms
<input name="fullName" ngModel required>
상세 내용으로 이동