Created
July 23, 2017 06:41
-
-
Save kyuwoo-choi/e9635a006b1f1d22b0ccbb5a654835ff 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
... | |
static get observedAttributes() { | |
// 모니터링 할 속성 이름 | |
return ['locale']; | |
} | |
attributeChangedCallback(attrName, oldVal, newVal) { | |
// 속성이 추가/제거/변경되었다. | |
this[attrName] = newVal; | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment