Explorar o código

Remove unnecessary parentheses from bind.md example (#4363)

Dan Bird hai 8 meses
pai
achega
cfe9499983
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/docs/src/en/directives/bind.md

+ 1 - 1
packages/docs/src/en/directives/bind.md

@@ -162,7 +162,7 @@ And like most expressions in Alpine, you can always use the result of a JavaScri
 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 directives, callbacks to be evaluated by Alpine.
 
 ```alpine
-<div x-data="dropdown()">
+<div x-data="dropdown">
     <button x-bind="trigger">Open Dropdown</button>
 
     <span x-bind="dialogue">Dropdown Contents</span>