Skip to content

Commit 9739694

Browse files
fix: update the arguments and description of application.use (vuejs#433)
1 parent 6344bdb commit 9739694

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/api/application-api.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,17 @@ setTimeout(() => app.unmount('#my-app'), 5000)
291291
- **Arguments:**
292292

293293
- `{Object | Function} plugin`
294+
- `[...options]`
294295

295296
- **Returns:**
296297

297298
- The application instance
298299

299300
- **Usage:**
300301

301-
Install a Vue.js plugin. If the plugin is an Object, it must expose an `install` method. If it is a function itself, it will be treated as the install method. The install method will be called with Vue as the argument.
302+
Install a Vue.js plugin. If the plugin is an Object, it must expose an `install` method. If it is a function itself, it will be treated as the install method.
303+
304+
The install method will be called with the application as its first argument. Any `options` passed to `use` will be passed on in subsequent arguments.
302305

303306
When this method is called on the same plugin multiple times, the plugin will be installed only once.
304307

0 commit comments

Comments
 (0)