Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save realtomaszkula/11e1a262b9213479d4ce58a7de4dcf78 to your computer and use it in GitHub Desktop.
Save realtomaszkula/11e1a262b9213479d4ce58a7de4dcf78 to your computer and use it in GitHub Desktop.
@Component({
selector: 'app-counter',
template: `...`,
})
export class CounterComponent {
@Input() value: number;
@Input() tick: number;
decrement() {
this.value -= this.tick;
}
increment() {
this.value += this.tick;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment