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

Method constructor

src/material/slider/slider-input.ts:284–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 protected _isControlInitialized = false;
283
284 constructor() {
285 const renderer = inject(Renderer2);
286
287 this._ngZone.runOutsideAngular(() => {
288 this._listenerCleanups = [
289 renderer.listen(this._hostElement, 'pointerdown', this._onPointerDown.bind(this)),
290 renderer.listen(this._hostElement, 'pointermove', this._onPointerMove.bind(this)),
291 renderer.listen(this._hostElement, 'pointerup', this._onPointerUp.bind(this)),
292 ];
293 });
294 }
295
296 ngOnDestroy(): void {
297 this._listenerCleanups.forEach(cleanup => cleanup());

Callers

nothing calls this directly

Calls 1

listenMethod · 0.80

Tested by

no test coverage detected