You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/api/global-api.md
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,7 @@ order: 5
5
5
6
6
### Vue.config
7
7
8
-
`Vue.config` is an object containing Vue's global settings. You can modify them directly, for example:
9
-
10
-
```js
11
-
Vue.config.debug=true// turn on debugging mode
12
-
```
13
-
14
-
Here are the list of all the avaiable settings with their default values:
8
+
`Vue.config` is an object containing Vue's global settings. Here are the list of all the avaiable settings with their default values:
15
9
16
10
```js
17
11
{
@@ -34,6 +28,20 @@ Here are the list of all the avaiable settings with their default values:
34
28
}
35
29
```
36
30
31
+
You can modify them directly, for example:
32
+
33
+
```js
34
+
Vue.config.debug=true// turn on debugging mode
35
+
```
36
+
37
+
Example for changing interpolation delimiters:
38
+
39
+
```js
40
+
Vue.config.delimiters= ['(%', '%)']
41
+
// tags now are (% %) for text
42
+
// and ((% %)) for HTML
43
+
```
44
+
37
45
### Vue.extend( options )
38
46
39
47
-**options**`Object`
@@ -74,28 +82,28 @@ Will result in:
74
82
75
83
Register or retrieve a global custom directive. For more details see [Writing Custom Directives](/guide/custom-directive.html).
76
84
77
-
### Vue.filter( id, definition )
85
+
### Vue.filter( id, [definition] )
78
86
79
87
-**id**`String`
80
88
-**definition**`Function`*optional*
81
89
82
90
Register or retrieve a global custom filter. For more details see [Writing Custom Filters](/guide/custom-filter.html).
83
91
84
-
### Vue.component( id, definition )
92
+
### Vue.component( id, [definition] )
85
93
86
94
-**id**`String`
87
95
-**definition**`Function Constructor` or `Object`*optional*
88
96
89
97
Register or retrieve a global component. For more details see [Component System](/guide/components.html).
90
98
91
-
### Vue.transition( id, definition )
99
+
### Vue.transition( id, [definition] )
92
100
93
101
-**id**`String`
94
102
-**definition**`Object`*optional*
95
103
96
104
Register or retrieve a global JavaScript transition effect definition. For more details see the guide for [JavaScript Transitions](/guide/transitions.html#JavaScript_Functions).
0 commit comments