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

Function ngAfterViewInit

src/material/tabs/paginated-tab-header.ts:187–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185 protected abstract _itemSelected(event: KeyboardEvent): void;
186
187 ngAfterViewInit() {
188 // We need to handle these events manually, because we want to bind passive event listeners.
189
190 this._eventCleanups.push(
191 this._renderer.listen(
192 this._previousPaginator.nativeElement,
193 'touchstart',
194 () => this._handlePaginatorPress('before'),
195 passiveEventListenerOptions,
196 ),
197 this._renderer.listen(
198 this._nextPaginator.nativeElement,
199 'touchstart',
200 () => this._handlePaginatorPress('after'),
201 passiveEventListenerOptions,
202 ),
203 );
204 }
205
206 ngAfterContentInit() {
207 const dirChange = this._dir ? this._dir.change : observableOf('ltr');

Callers

nothing calls this directly

Calls 2

listenMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected