Skip to content

Instantly share code, notes, and snippets.

@realtomaszkula
Created July 2, 2018 11:17
Show Gist options
  • Save realtomaszkula/ef658e80f7853a02d7cf311072701088 to your computer and use it in GitHub Desktop.
Save realtomaszkula/ef658e80f7853a02d7cf311072701088 to your computer and use it in GitHub Desktop.
private _value: number;
get value(): number {
return this._value;
}
@Input()
set value(value: number) {
this._value = coerceNumberProperty(value, 0);
}
private _tick: number;
get tick(): number {
return this._tick;
}
@Input()
set tick(value: number) {
this._tick = coerceNumberProperty(value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment