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

Method _initValue

src/material/slider/slider-input.ts:325–335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323 }
324
325 _initValue(): void {
326 this._hasSetInitialValue = true;
327 if (this._initialValue === undefined) {
328 this.value = this._getDefaultValue();
329 } else {
330 this._hostElement.value = this._initialValue;
331 this._updateThumbUIByValue();
332 this._slider._onValueChange(this);
333 this._cdr.detectChanges();
334 }
335 }
336
337 _getDefaultValue(): number {
338 return this.min;

Callers 1

initPropsMethod · 0.95

Calls 3

_getDefaultValueMethod · 0.95
_updateThumbUIByValueMethod · 0.95
_onValueChangeMethod · 0.80

Tested by

no test coverage detected