Skip to content

Commit ac18c49

Browse files
committed
minor addition
1 parent 95c3270 commit ac18c49

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

source/api/global-api.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ order: 5
55

66
### Vue.config
77

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:
159

1610
``` js
1711
{
@@ -34,6 +28,20 @@ Here are the list of all the avaiable settings with their default values:
3428
}
3529
```
3630

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+
3745
### Vue.extend( options )
3846

3947
- **options** `Object`
@@ -74,28 +82,28 @@ Will result in:
7482

7583
Register or retrieve a global custom directive. For more details see [Writing Custom Directives](/guide/custom-directive.html).
7684

77-
### Vue.filter( id, definition )
85+
### Vue.filter( id, [definition] )
7886

7987
- **id** `String`
8088
- **definition** `Function` *optional*
8189

8290
Register or retrieve a global custom filter. For more details see [Writing Custom Filters](/guide/custom-filter.html).
8391

84-
### Vue.component( id, definition )
92+
### Vue.component( id, [definition] )
8593

8694
- **id** `String`
8795
- **definition** `Function Constructor` or `Object` *optional*
8896

8997
Register or retrieve a global component. For more details see [Component System](/guide/components.html).
9098

91-
### Vue.transition( id, definition )
99+
### Vue.transition( id, [definition] )
92100

93101
- **id** `String`
94102
- **definition** `Object` *optional*
95103

96104
Register or retrieve a global JavaScript transition effect definition. For more details see the guide for [JavaScript Transitions](/guide/transitions.html#JavaScript_Functions).
97105

98-
### Vue.partial( id, definition )
106+
### Vue.partial( id, [definition] )
99107

100108
- **id** `String`
101109
- **definition** `String | Node` *optional*

0 commit comments

Comments
 (0)