MCPcopy Create free account
hub / github.com/angular/components / required

Method required

src/material/select/select.ts:431–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

429 /** Whether the component is required. */
430 @Input({transform: booleanAttribute})
431 get required(): boolean {
432 return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;
433 }
434 set required(value: boolean) {
435 this._required = value;
436 this.stateChanges.next();

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected