From 1ab7b6b6bfab2172c428032e6a320586a78bf925 Mon Sep 17 00:00:00 2001 From: Eric Kwoka <43540491+ekwoka@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:16:38 +0400 Subject: [PATCH] :memo: Updates docs with notes for x-data usage (#4307) --- packages/docs/src/en/directives/bind.md | 2 ++ packages/docs/src/en/directives/for.md | 4 +++- packages/docs/src/en/directives/id.md | 3 ++- packages/docs/src/en/directives/if.md | 8 ++++++-- packages/docs/src/en/directives/model.md | 2 ++ packages/docs/src/en/directives/on.md | 2 ++ packages/docs/src/en/directives/ref.md | 2 ++ packages/docs/src/en/directives/transition.md | 2 ++ packages/docs/src/en/start-here.md | 2 ++ 9 files changed, 23 insertions(+), 4 deletions(-) diff --git a/packages/docs/src/en/directives/bind.md b/packages/docs/src/en/directives/bind.md index cc5b81d1f..9bcaa4f9e 100644 --- a/packages/docs/src/en/directives/bind.md +++ b/packages/docs/src/en/directives/bind.md @@ -24,6 +24,8 @@ If `x-bind:` is too verbose for your liking, you can use the shorthand: `:`. For ``` +> Despite not being included in the above snippet, `x-bind` cannot be used if no parent element has `x-data` defined. [→ Read more about `x-data`](/directives/data) + ## Binding classes diff --git a/packages/docs/src/en/directives/for.md b/packages/docs/src/en/directives/for.md index 4803071b9..97df4d23c 100644 --- a/packages/docs/src/en/directives/for.md +++ b/packages/docs/src/en/directives/for.md @@ -51,7 +51,7 @@ You may also pass objects to `x-for`. There are two rules worth noting about `x-for`: ->`x-for` MUST be declared on a `