8000 2.5: ignoredElement RegExp · vuejs/v2.vuejs.org@b171877 · GitHub
[go: up one dir, main page]

Skip to content

Commit b171877

Browse files
committed
2.5: ignoredElement RegExp
1 parent 31f6f92 commit b171877

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/v2/api/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,19 @@ type: api
105105

106106
### ignoredElements
107107

108-
- **Type:** `Array<string>`
108+
- **Type:** `Array<string | RegExp>`
109109

110110
- **Default:** `[]`
111111

112112
- **Usage:**
113113

114114
``` js
115115
Vue.config.ignoredElements = [
116-
'my-custom-web-component', 'another-web-component'
116+
'my-custom-web-component',
117+
'another-web-component',
118+
// Use a RegExp to ignore all elements that start with "ion-"
119+
// 2.5+ only
120+
/^ion-/
117121
]
118122
```
119123

0 commit comments

Comments
 (0)
0