You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
init() is aware of the component data & element (unlike the constructor), so it can add HTML attributes similarly to x-spread. Combined with automatic invocation of init(), it will be possible to use this package like this:
<divx-data="Alpine.component('foo')()">
And the foo component will be capable of adding attributes to the root element, setting state in init(), and everything else — automatically.
The text was updated successfully, but these errors were encountered:
We'll do this in 0.2.x once alpinejs/alpine#1166 is merged
init()
is aware of the component data & element (unlike the constructor), so it can add HTML attributes similarly tox-spread
. Combined with automatic invocation ofinit()
, it will be possible to use this package like this:And the
foo
component will be capable of adding attributes to the root element, setting state ininit()
, and everything else — automatically.The text was updated successfully, but these errors were encountered: