lz-bucket
The attribute lz-bucket
is used to specify the name of the bucket that Leeze.js associates with that element.
In other words, when the value of the specified bucket changes, Leeze.js automatically updates all elements that used that bucket name in their lz-bucket
attribute.
<p lz-reactive lz-bucket="myBucket"></p>
This is an example of how to use lz-bucket
. Here we tell Leeze.js to update the paragraph's content whenever the bucket "myBucket" changes.
You can technically use both lz-bucket
and lz-source
on a reactive element but there is no guarantee that they both will work.
For more information about buckets, you can check out the introduction to Leeze.js.