|
@@ -157,9 +157,9 @@ And like most expressions in Alpine, you can always use the result of a JavaScri
|
|
<a name="bind-directives"></a>
|
|
<a name="bind-directives"></a>
|
|
## Binding Alpine Directives Directly
|
|
## Binding Alpine Directives Directly
|
|
|
|
|
|
-`x-bind` allows you to bind an object of different properties to an element.
|
|
|
|
|
|
+`x-bind` allows you to bind an object of different directives and attributes to an element.
|
|
|
|
|
|
-The object keys are the directives (can be any directive including modifiers), and the values are callbacks to be evaluated by Alpine.
|
|
|
|
|
|
+The object keys can be anything you would normally write as an attribute name in Alpine. This includes Alpine directives and modifiers, but also plain HTML attributes. The object values are either plain strings, or in the case of dynamic Alpine directoves, callbacks to be evaluated by Alpine.
|
|
|
|
|
|
```alpine
|
|
```alpine
|
|
<div x-data="dropdown()">
|
|
<div x-data="dropdown()">
|