Ryan Chandler il y a 4 ans
Parent
commit
768773ac35
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      README.md

+ 2 - 4
README.md

@@ -124,16 +124,14 @@ import 'alpinejs'
 
 ### Subscribing your components
 
-To access the global state from your Alpine components, you can simply add the `x-subscribe` directive to your root component.
+Spruce hooks into Alpine using the "magic properties" API, meaning there are no extra steps needed. Start using the `$store` variable in your components right away.
 
 ``` html
-<div x-data="{}" x-subscribe>
+<div x-data="{}">
     <span x-text="$store.application.name"></span>
 </div>
 ```
 
-This directive adds a new `$store` magic variable to your component. This can be used to "get" and "set" data in your global store.
-
 ### Defining global state
 
 To define a piece of global state, you can use the `Spruce.store()` method: