Ryan Chandler 5 năm trước cách đây
mục cha
commit
ef37f9c792
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -114,14 +114,14 @@ The `<span>` will now have "Amazing Alpine Application" set as its `innerText`.
 
 ### Modifying state from outside of Alpine
 
-You can modify your global state from external scripts using the `Spruce` object:
+You can modify your global state from external scripts using the `Spruce.store()` method too:
 
 ```javascript
 Spruce.store('application', {
     name: 'Amazing Alpine Application'
 })
 
-Spruce.stores.application.name = 'Amazing Spruce Integration'
+Spruce.store('application').name = 'Amazing Spruce Integration'
 ```
 
 This will trigger Alpine to re-evaluate your subscribed components and re-render.