Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/en/getters.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ computed: {
```

You can also pass arguments to getters by returning a function. This is particularly useful when you want to query an array in the store:

```js
getters: {
// ...
Expand Down Expand Up @@ -100,7 +101,7 @@ If you want to map a getter to a different name, use an object:

``` js
...mapGetters({
// map this.doneCount to store.getters.doneTodosCount
// map `this.doneCount` to `store.getters.doneTodosCount`
doneCount: 'doneTodosCount'
})
```