Skip to content

Commit 4c9763a

Browse files
Update src/guide/component-dynamic-async.md
Co-Authored-By: Rahul Kadyan <hi@znck.me>
1 parent 0c06b40 commit 4c9763a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-dynamic-async.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You'll notice that if you select a post, switch to the _Archive_ tab, then switc
1818

1919
Recreating dynamic components is normally useful behavior, but in this case, we'd really like those tab component instances to be cached once they're created for the first time. To solve this problem, we can wrap our dynamic component with a `<keep-alive>` element:
2020

21-
```html
21+
```vue-html
2222
<!-- Inactive components will be cached! -->
2323
<keep-alive>
2424
<component v-bind:is="currentTabComponent"></component>

0 commit comments

Comments
 (0)