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

Method getName

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

Gets the name of the input.

()

Source from the content-addressed store, hash-verified

67
68 /** Gets the name of the input. */
69 async getName(): Promise<string> {
70 // The "name" property of the native input is never undefined.
71 return await (await this.host()).getProperty<string>('name');
72 }
73
74 /**
75 * Gets the type of the input. Returns "textarea" if the input is

Calls

no outgoing calls

Tested by

no test coverage detected