Skip to content

Commit 62af1da

Browse files
authored
docs: self-close dynamic component for consistency (#1665)
1 parent 02b38bd commit 62af1da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/built-ins/keep-alive.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ By default, `<KeepAlive>` will cache any component instance inside. We can custo
5757
```vue-html
5858
<!-- comma-delimited string -->
5959
<KeepAlive include="a,b">
60-
<component :is="view"></component>
60+
<component :is="view" />
6161
</KeepAlive>
6262
6363
<!-- regex (use `v-bind`) -->
6464
<KeepAlive :include="/a|b/">
65-
<component :is="view"></component>
65+
<component :is="view" />
6666
</KeepAlive>
6767
6868
<!-- Array (use `v-bind`) -->
6969
<KeepAlive :include="['a', 'b']">
70-
<component :is="view"></component>
70+
<component :is="view" />
7171
</KeepAlive>
7272
```
7373

0 commit comments

Comments
 (0)