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

Method isValid

src/material/select/testing/select-harness.ts:52–54  ·  view source on GitHub ↗

Gets a boolean promise indicating if the select is valid.

()

Source from the content-addressed store, hash-verified

50
51 /** Gets a boolean promise indicating if the select is valid. */
52 async isValid(): Promise<boolean> {
53 return !(await (await this.host()).hasClass('ng-invalid'));
54 }
55
56 /** Gets a boolean promise indicating if the select is required. */
57 async isRequired(): Promise<boolean> {

Callers 6

timepicker.spec.tsFile · 0.45
generateOptionsFunction · 0.45
_isValidMethod · 0.45
_transformDateInputMethod · 0.45

Calls 1

hasClassMethod · 0.65

Tested by

no test coverage detected