Last active
August 12, 2018 06:12
-
-
Save KaiWedekind/03f228472691aeaed684577888c4656a to your computer and use it in GitHub Desktop.
Universal todo component built with custom elements v1 - Class definition
This file contains hidden or 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
class MyTodos extends HTMLElement { | |
constructor() { | |
// always call super() first in your constructor to inherit from your parent class | |
super(); | |
} | |
} | |
// register new tag and associate it with the class | |
customElements.define('my-todos', MyTodos); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment