Created
July 2, 2018 11:16
-
-
Save realtomaszkula/11e1a262b9213479d4ce58a7de4dcf78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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