Skip to content

Commit 9370d10

Browse files
committed
Swap more examples to destructuring for accessing the global Vue
vuejs/docs@e5b34b2#diff-49557730f09415eda33d758ddbdd6f3dcc8604204e87bcfb9ad76fd881dccf7f
1 parent 9daa352 commit 9370d10

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/guide/component-dynamic-async.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@
3838
大規模なアプリケーションでは、アプリケーションを小さなまとまりに分割し、必要なコンポーネントだけサーバーから読み込みたい場合があるでしょう。これを可能にするために、 Vue は `defineAsyncComponent` メソッドを持ちます:
3939

4040
```js
41-
const app = Vue.createApp({})
41+
const { createApp, defineAsyncComponent } = Vue
4242

43-
const AsyncComp = Vue.defineAsyncComponent(
43+
const app = createApp({})
44+
45+
const AsyncComp = defineAsyncComponent(
4446
() =>
4547
new Promise((resolve, reject) => {
4648
resolve({

0 commit comments

Comments
 (0)