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

Method focus

src/material/input/input.ts:414–416  ·  view source on GitHub ↗

Focuses the input.

(options?: FocusOptions)

Source from the content-addressed store, hash-verified

412
413 /** Focuses the input. */
414 focus(options?: FocusOptions): void {
415 this._elementRef.nativeElement.focus(options);
416 }
417
418 /** Refreshes the error state of the input. */
419 updateErrorState() {

Callers 1

onContainerClickMethod · 0.95

Calls 1

focusMethod · 0.65

Tested by

no test coverage detected