You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are building large application now, recommend you use the way.
10
+
If you are building a large application, we recommend you use the following method:
11
11
12
12
```bash
13
13
npm install vue-infinite-loading -S
14
14
```
15
15
16
16
### Direct `<script>` Include
17
17
18
-
After you imported this plugin through `script` tag, it will register `InfiniteLoading` component automatically, so you can use it in global.
18
+
After you import this plugin through the `script` tag, it will register the `InfiniteLoading` component automatically, so you can use it in the global scope.
19
19
20
20
#### CDN
21
21
@@ -27,7 +27,7 @@ You can import this plugin from [unpkg](https://unpkg.com):
If you want to configure default options, you can register this plugin through `use` API of Vue.js:
58
+
If you want to configure default options, you can register this plugin through the `use` API of Vue.js:
59
59
60
60
```js
61
61
// main.js or index.js
@@ -64,4 +64,4 @@ import InfiniteLoading from 'vue-infinite-loading';
64
64
Vue.use(InfiniteLoading, { /* options */ });
65
65
```
66
66
67
-
Same as the `script` include way, the `InfiniteLoading` component will be registered as a global component if use the plugin API, you don't need to re-register it through `components` property in your own components.
67
+
If you use the plugin API, the `InfiniteLoading` component will be registered as a global component just like when including it with the `script` tag, but you won't need to re-register it through the`components` property in your own components.
0 commit comments