ソースを参照

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

Dan Bird 8 ヶ月 前
コミット
cfe9499983
1 ファイル変更1 行追加1 行削除
  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.
 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
 ```alpine
-<div x-data="dropdown()">
+<div x-data="dropdown">
     <button x-bind="trigger">Open Dropdown</button>
     <button x-bind="trigger">Open Dropdown</button>
 
 
     <span x-bind="dialogue">Dropdown Contents</span>
     <span x-bind="dialogue">Dropdown Contents</span>