@Output() myEvent: EventEmitter<string> = new EventEmitter();
public onClick() {
this.myEvent.emit('you clicked me!');
}
Last active
January 1, 2018 06:49
-
-
Save killerchip/f7d305df3721be620b122c52b9d3adb3 to your computer and use it in GitHub Desktop.
Angular cheatsheet: Component event emitters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment