Created
May 27, 2018 18:06
-
-
Save kyuwoo-choi/0a2e26d84a725ef104fa9dbea4c0a65f to your computer and use it in GitHub Desktop.
This file contains 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
// javascript and html-element live together | |
class MyElement extends HTMLElement { | |
yey() { | |
console.log('yey'); | |
} | |
} | |
document.querySelector('my-element').yey() | |
// 'yey' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment