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

Method initialize

src/material/chips/chip-edit-input.ts:28–31  ·  view source on GitHub ↗
(initialValue: string)

Source from the content-addressed store, hash-verified

26 private readonly _document = inject(DOCUMENT);
27
28 initialize(initialValue: string) {
29 this.getNativeElement().focus();
30 this.setValue(initialValue);
31 }
32
33 getNativeElement(): HTMLElement {
34 return this._elementRef.nativeElement;

Callers

nothing calls this directly

Calls 3

getNativeElementMethod · 0.95
setValueMethod · 0.95
focusMethod · 0.65

Tested by

no test coverage detected