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

Method ngAfterViewInit

src/material/list/selection-list.ts:167–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 ngAfterViewInit() {
168 // Mark the selection list as initialized so that the `multiple`
169 // binding can no longer be changed.
170 this._initialized = true;
171 this._setupRovingTabindex();
172
173 // These events are bound outside the zone, because they don't change
174 // any change-detected properties and they can trigger timeouts.
175 this._ngZone.runOutsideAngular(() => {
176 this._listenerCleanups = [
177 this._renderer.listen(this._element.nativeElement, 'focusin', this._handleFocusin),
178 this._renderer.listen(this._element.nativeElement, 'focusout', this._handleFocusout),
179 ];
180 });
181
182 if (this._value) {
183 this._setOptionsFromValues(this._value);
184 }
185
186 this._watchForSelectionChange();
187 }
188
189 ngOnChanges(changes: SimpleChanges<this>) {
190 const disabledChanges = changes['disabled'];

Callers

nothing calls this directly

Calls 4

_setupRovingTabindexMethod · 0.95
_setOptionsFromValuesMethod · 0.95
listenMethod · 0.80

Tested by

no test coverage detected