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

Method ngAfterViewInit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

listenMethod · 0.80
_hasFocusMethod · 0.45

Tested by

no test coverage detected