8000 Add some comments for `import` function (#1202) · vuejs/v2.vuejs.org@a7b6d9e · GitHub
[go: up one dir, main page]

Skip to content

Commit a7b6d9e

Browse files
Justineochrisvfritz
authored andcommitted
Add some comments for import function (#1202)
...in case some readers are not familiar with it.
1 parent 4ac328f commit a7b6d9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/v2/guide/components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,7 @@ You can also return a `Promise` in the factory function, so with Webpack 2 + ES2
11501150
``` js
11511151
Vue.component(
11521152
'async-webpack-example',
1153+
// The `import` function returns a `Promise`.
11531154
() => import('./my-async-component')
11541155
)
11551156
```

0 commit comments

Comments
 (0)
0