Skip to content

fromAttribute release

Choose a tag to compare

@Mattchewone Mattchewone released this 13 Aug 13:05
· 37 commits to master since this release

Release can-observable-bindings with fromAttribute using attributeChangedCallback for synchronous property changes.

<my-el name="Matt"></my-el>

Will output:

const element = document.querySelector("my-el")
console.log(element.name) //-> "Matt"

element.setAttribute("name", "Kevin")
console.log(element.name) //-> "Kevin"