diff --git a/packages/docs/src/en/directives/init.md b/packages/docs/src/en/directives/init.md index 9e4d2eb87..2a3983a15 100644 --- a/packages/docs/src/en/directives/init.md +++ b/packages/docs/src/en/directives/init.md @@ -72,3 +72,18 @@ Alpine.data('dropdown', () => ({ }, })) ``` + +If you have both an `x-data` object containing an `init()` method and an `x-init` directive, the `x-data` method will be called before the directive. + +```alpine +
+ ... +
+```