Skip to content

Commit 927d72b

Browse files
committed
add Vue.mixin()
1 parent 087a899 commit 927d72b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/api/global-api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ Register or retrieve a global template partial string. For more details see [Par
150150

151151
Mount a Vue.js plugin. If the plugin is an Object, it must have an `install` method. If it is a function itself, it will be treated as the install method. The install method will be called with Vue as the argument. For more details, see [Plugins](/guide/extending.html#Extend_with_Plugins).
152152

153+
### Vue.mixin( mixin )
154+
155+
- **mixin** `Object`
156+
157+
Apply a mixin globally, which affects every Vue instance created afterwards. This can be used by plugin authors to inject custom behavior into components. **Not recommended in application code**.
158+
153159
### Vue.util
154160

155161
Exposes the internal `util` module, which contains a number of utility methods. This is intended for advanced plugin/directive authoring, so you will need to look at the source code to see what's available.

0 commit comments

Comments
 (0)