Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created January 27, 2018 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/6596550307a1685929dc873e004d8f1b to your computer and use it in GitHub Desktop.
Save matthieu-D/6596550307a1685929dc873e004d8f1b to your computer and use it in GitHub Desktop.
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