Skip to content

Instantly share code, notes, and snippets.

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 killerchip/f7d305df3721be620b122c52b9d3adb3 to your computer and use it in GitHub Desktop.
Save killerchip/f7d305df3721be620b122c52b9d3adb3 to your computer and use it in GitHub Desktop.
Angular cheatsheet: Component event emitters

Component event emitters

@Output() myEvent: EventEmitter<string> = new EventEmitter();

public onClick() {
  this.myEvent.emit('you clicked me!');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment