Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- increase() {
- if (this._value < this.defaultMaxValues[this._isUnitTotal]) {
- const value = this.correctValueDefaultRang(this._value + 1);
- this.writeValue(value);
- if (this.onChangeCallback) {
- this.onChangeCallback();
- }
- this.valueChange.emit(this._value);
- }
- }
- decrease() {
- if (this._value > this._min) {
- const value = this.correctValueDefaultRang(this._value - 1);
- this.writeValue(value);
- if (this.onChangeCallback) {
- this.onChangeCallback();
- }
- this.valueChange.emit(this._value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement