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

Method constructor

src/material/core/ripple/ripple-renderer.ts:112–127  ·  view source on GitHub ↗
(
    private _target: RippleTarget,
    private _ngZone: NgZone,
    elementOrElementRef: HTMLElement | ElementRef<HTMLElement>,
    private _platform: Platform,
    injector?: Injector,
  )

Source from the content-addressed store, hash-verified

110 private static _eventManager = new RippleEventManager();
111
112 constructor(
113 private _target: RippleTarget,
114 private _ngZone: NgZone,
115 elementOrElementRef: HTMLElement | ElementRef<HTMLElement>,
116 private _platform: Platform,
117 injector?: Injector,
118 ) {
119 // Only do anything if we're on the browser.
120 if (_platform.isBrowser) {
121 this._containerElement = coerceElement(elementOrElementRef);
122 }
123
124 if (injector) {
125 injector.get(_CdkPrivateStyleLoader).load(_MatRippleStylesLoader);
126 }
127 }
128
129 /**
130 * Fades in a ripple at the given coordinates.

Callers

nothing calls this directly

Calls 3

coerceElementFunction · 0.90
loadMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected