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

Method constructor

src/material/chips/chip.ts:256–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

254 protected _injector = inject(Injector);
255
256 constructor() {
257 const styleLoader = inject(_CdkPrivateStyleLoader);
258 styleLoader.load(_StructuralStylesLoader);
259 styleLoader.load(_VisuallyHiddenLoader);
260 this._monitorFocus();
261
262 this._rippleLoader?.configureRipple(this._elementRef.nativeElement, {
263 className: 'mat-mdc-chip-ripple',
264 disabled: this._isRippleDisabled(),
265 });
266 }
267
268 ngOnInit() {
269 // This check needs to happen in `ngOnInit` so the overridden value of

Callers

nothing calls this directly

Calls 4

_monitorFocusMethod · 0.95
_isRippleDisabledMethod · 0.95
loadMethod · 0.80
configureRippleMethod · 0.80

Tested by

no test coverage detected