MCPcopy Index your code
hub / github.com/angular/components / constructor

Method constructor

src/material/checkbox/checkbox.ts:241–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 private _validatorChangeFn = () => {};
240
241 constructor() {
242 inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
243 const tabIndex = inject(new HostAttributeToken('tabindex'), {optional: true});
244 this._options = this._options || checkboxDefaults;
245 this.color = this._options.color || checkboxDefaults.color;
246 this.tabIndex = tabIndex == null ? 0 : parseInt(tabIndex) || 0;
247 this.id = this._uniqueId = inject(_IdGenerator).getId('mat-mdc-checkbox-');
248 this.disabledInteractive = this._options?.disabledInteractive ?? false;
249 }
250
251 ngOnChanges(changes: SimpleChanges<this>) {
252 if (changes['required']) {

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
getIdMethod · 0.45

Tested by

no test coverage detected