Skip to content

Commit 9223626

Browse files
committed
doc++
1 parent 04698f7 commit 9223626

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
// plugins.js
22

33
// this file should be generated automatically by your plugin system
4-
// it should export a default object which just refers to vue
5-
// components:
4+
// It should export a default object which contains plugins.
5+
// A plugin is a named index of "hooks" pointing to a list of Vue components
6+
// implementing that hook.
67

7-
// import foo from '@/plugins/foo'
8-
// var bar = {
8+
// import MyPlugin from '@/plugins/myplugin'
9+
//
10+
// or, directly here:
11+
//
12+
// var BarPlugin = {
913
// hooks: {
10-
// "baz-hook": MyComponent,
1114
// "bar-hook": [BarComponent, BeezComponent]
1215
// }
1316
// }
1417

1518
export default {
16-
// foo,
17-
// bar
19+
// MyPlugin,
20+
// BarPlugin
1821
}

0 commit comments

Comments
 (0)