Răsfoiți Sursa

Change x-watch to $watch in documentation

`watch` is not an directive, it is an magic variable
Jon Uhlmann 4 ani în urmă
părinte
comite
b3022942de
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      packages/docs/src/en/essentials/lifecycle.md

+ 1 - 1
packages/docs/src/en/essentials/lifecycle.md

@@ -47,7 +47,7 @@ As you can see above, `$watch` allows you to hook into data changes using a dot-
 <a name="x-effect"></a>
 ### `x-effect`
 
-`x-effect` uses the same mechanism under the hood as `x-watch` but has very different usage.
+`x-effect` uses the same mechanism under the hood as `$watch` but has very different usage.
 
 Instead of specifying which data key you wish to watch, `x-effect` will call the provided code and intelligently look for any Alpine data used within it. Now when one of those peices of data changes, the `x-effect` expression will be re-run.