Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
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