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

Method constructor

src/material/button/button-base.ts:158–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 readonly showProgress = input(false, {transform: booleanAttribute});
157
158 constructor() {
159 inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
160 const element = this._elementRef.nativeElement;
161
162 this._isAnchor = element.tagName === 'A';
163 this.disabledInteractive = this._config?.disabledInteractive ?? false;
164 this.color = this._config?.color ?? null;
165 this._rippleLoader?.configureRipple(element, {className: 'mat-mdc-button-ripple'});
166 }
167
168 ngAfterViewInit() {
169 this._focusMonitor.monitor(this._elementRef, true);

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
configureRippleMethod · 0.80

Tested by

no test coverage detected