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

Method ngAfterViewInit

src/material/chips/chip-row.ts:124–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 override ngAfterViewInit() {
125 super.ngAfterViewInit();
126
127 // Sets _alreadyFocused (ahead of click) when chip already has focus.
128 this._cleanupMousedown = this._ngZone.runOutsideAngular(() =>
129 this._renderer.listen(this._elementRef.nativeElement, 'mousedown', () => {
130 this._alreadyFocused = this._hasFocus();
131 }),
132 );
133 }
134
135 override ngOnDestroy(): void {
136 super.ngOnDestroy();

Callers

nothing calls this directly

Calls 2

listenMethod · 0.80
_hasFocusMethod · 0.45

Tested by

no test coverage detected