Created
January 27, 2018 18:33
-
-
Save matthieu-D/6596550307a1685929dc873e004d8f1b to your computer and use it in GitHub Desktop.
This file contains 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
export default class CounterService { | |
counter = 0; | |
add() { | |
this.counter++; | |
} | |
show() { | |
console.log(this.counter); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment