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.
:not([type=checkbox])[required][formControlName]:not([type=checkbox])[required][formControl]:not([type=checkbox])[required][ngModel]| Property | Description |
|---|---|
@Input()required: boolean | string | Tracks changes to the required attribute bound to this directive. |
<input name="fullName" ngModel required>
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/forms/RequiredValidator