Skip to content

Instantly share code, notes, and snippets.

@hectorlorenzo
Created November 15, 2017 11:27
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 hectorlorenzo/f7dad3330df48dd76deb4c3cab080978 to your computer and use it in GitHub Desktop.
Save hectorlorenzo/f7dad3330df48dd76deb4c3cab080978 to your computer and use it in GitHub Desktop.
const elemClass = class extends HTMLElement {
constructor() {
super()
}
static get observedAttributes () {
return Object.keys(this.options.data)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment