MCPcopy
hub / github.com/angular/components / getId

Method getId

src/material/input/testing/input-harness.ts:94–98  ·  view source on GitHub ↗

Gets the id of the input.

()

Source from the content-addressed store, hash-verified

92
93 /** Gets the id of the input. */
94 async getId(): Promise<string> {
95 // The input directive always assigns a unique id to the input in
96 // case no id has been explicitly specified.
97 return await (await this.host()).getProperty<string>('id');
98 }
99
100 /**
101 * Focuses the input and returns a promise that indicates when the

Callers 15

MatPaginatorClass · 0.45
MatChipClass · 0.45
MatChipGridClass · 0.45
MatChipInputClass · 0.45
MatFormFieldClass · 0.45
MatErrorClass · 0.45
MatHintClass · 0.45
constructorMethod · 0.45
ngOnInitMethod · 0.45
MatTimepickerClass · 0.45
MatOptionClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected