Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cklmercer committed Jul 8, 2016
1 parent 1ff7024 commit 55bd185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require('vue-stash');
## Usage

##### 1.) Initialize your store object.
Your store object is nothing more than a simple Javascript object set within your root vue model's data option; Think of it as your "shared data option". Make sure you pre-initialize any properties that you want to be reactive, just like always.
Your store object is nothing more than a simple Javascript object set within your root vue model's `$data` option; Think of it as your "shared data option". Make sure you pre-initialize any properties that you want to be reactive, just like always.

```
new Vue({
Expand Down Expand Up @@ -67,7 +67,7 @@ Vue.component('user-card', {
});
```

##### 3.) Access the store without setting a key in the store option.
##### 3.) Access the store directly.
This plugin adds a new prototype property to Vue which allows any component to access the store via `vm.$store`.
```
Vue.component('user-card', {
Expand Down

0 comments on commit 55bd185

Please sign in to comment.