8000 include events methods in api reference · padcom/vuejs.org@6cddee4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6cddee4

Browse files
committed
include events methods in api reference
1 parent 49c17e1 commit 6cddee4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/en/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- [Actions](actions.md)
1212
- [Data Flow](data-flow.md)
1313
- [Application Structure](structure.md)
14-
- [Plugins](middlewares.md)
14+
- [Plugins](plugins.md)
1515
- [Strict Mode](strict.md)
1616
- [Form Handling](forms.md)
1717
- [Testing](testing.md)

docs/en/api.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,13 @@ const store = new Vuex.Store({ ...options })
101101
- **hotUpdate(newOptions: Object)**
102102

103103
Hot swap new actions and mutations. [Details](hot-reload.md)
104+
105+
- **on(event: String, cb: Function)**
106+
107+
- **once(event: String, cb: Function)**
108+
109+
- **off([event: String, cb: Function])**
110+
111+
- **emit(event: String, ...args)**
112+
113+
Same event interface as found on a Vue instance. The only event the store emits is `mutation` (see [Plugins](plugins.md)).

0 commit comments

Comments
 (0)
0