Created
January 28, 2020 02:39
-
-
Save CharlieGreenman/882ef28748167786100345056d2471a2 to your computer and use it in GitHub Desktop.
Compodoc / Jsdoc example
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
/** | |
* 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