Guest User

Untitled

a guest
Dec 11th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class myComponent extends HTMLElement {
  2. constuctor() {
  3. super();
  4.  
  5. this.attachShadow({mode: 'open})
  6. this.shadowRoot.innerHTML = `
  7. <style>
  8. </style>
  9. <div>
  10. </div>
  11. `
  12. }
  13.  
  14. connectedCallback () {
  15.  
  16. }
  17.  
  18. attributeChangedCallback(name, oldValue, newValue)
  19.  
  20. static get ObservedAttributes {
  21. return []
  22. }
  23. }
Add Comment
Please, Sign In to add comment