Skip to content

Instantly share code, notes, and snippets.

@JaeYeopHan

JaeYeopHan/Marker.ts

Last active Apr 24, 2018
Embed
What would you like to do?
Example code to Marker component in post of state management posting
export class Marker extends EventEmitter {
constructor(
private id: number,
) {
super();
document.querySelector("marker").addEventListener("click", () => {
// do something
this.trigger("card_action", this.id);
});
}
do() {
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.