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

Method constructor

src/material/core/ripple/ripple.ts:136–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 _isInitialized: boolean = false;
135
136 constructor() {
137 const ngZone = inject(NgZone);
138 const platform = inject(Platform);
139 const globalOptions = inject<RippleGlobalOptions>(MAT_RIPPLE_GLOBAL_OPTIONS, {optional: true});
140 const injector = inject(Injector);
141
142 // Note: cannot use `inject()` here, because this class
143 // gets instantiated manually in the ripple loader.
144 this._globalOptions = globalOptions || {};
145 this._rippleRenderer = new RippleRenderer(this, ngZone, this._elementRef, platform, injector);
146 }
147
148 ngOnInit() {
149 this._isInitialized = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected