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

Method constructor

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

Source from the content-addressed store, hash-verified

269 protected _injector = inject(Injector);
270
271 constructor() {
272 const styleLoader = inject(_CdkPrivateStyleLoader);
273 styleLoader.load(_StructuralStylesLoader);
274 styleLoader.load(_VisuallyHiddenLoader);
275 this._monitorFocus();
276
277 this._rippleLoader?.configureRipple(this._elementRef.nativeElement, {
278 className: 'mat-mdc-chip-ripple',
279 disabled: this._isRippleDisabled(),
280 });
281 }
282
283 ngOnInit() {
284 // 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