Browse Source

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

Dan Bird 8 tháng trước cách đây
mục cha
commit
cfe9499983
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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>