Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created January 28, 2020 02:39
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 CharlieGreenman/882ef28748167786100345056d2471a2 to your computer and use it in GitHub Desktop.
Save CharlieGreenman/882ef28748167786100345056d2471a2 to your computer and use it in GitHub Desktop.
Compodoc / Jsdoc example
/**
* Display only completed todos
*/
displayCompleted() {
this.currentFilter = 'completed';
EmitterService.get(this.id).emit('displayCompleted');
}
/**
* Display all todos
*/
displayAll() {
this.currentFilter = 'all';
EmitterService.get(this.id).emit('displayAll');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment