Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created January 28, 2020 02:39
Show Gist options
  • 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