We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BooleanInput
required
disabled
1 parent b02e24e commit 76cb6adCopy full SHA for 76cb6ad
guides/creating-a-custom-form-field-control.md
@@ -300,7 +300,7 @@ change detection if the required state changes.
300
get required() {
301
return this._required;
302
}
303
-set required(req) {
+set required(req: BooleanInput) {
304
this._required = coerceBooleanProperty(req);
305
this.stateChanges.next();
306
@@ -316,7 +316,7 @@ make up our component.
316
```ts
317
@Input()
318
get disabled(): boolean { return this._disabled; }
319
-set disabled(value: boolean) {
+set disabled(value: BooleanInput) {
320
this._disabled = coerceBooleanProperty(value);
321
this._disabled ? this.parts.disable() : this.parts.enable();
322
0 commit comments