Skip to content

Commit b740951

Browse files
feat: added an example to use api
1 parent 9e3d61a commit b740951

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/api/application-api.md

+13
Original file line numberDiff line numberDiff line change
@@ -303,4 +303,17 @@ setTimeout(() => app.unmount(), 5000)
303303

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

306+
- **Example:**
307+
308+
```js
309+
import { createApp } from 'vue'
310+
import MyPlugin from './plugins/MyPlugin'
311+
312+
const app = createApp({})
313+
const i18nStrings = {
314+
315+
app.use(MyPlugin)
316+
app.mount('#app')
317+
```
318+
306319
- **See also:** [Plugins](../guide/plugins.html)

0 commit comments

Comments
 (0)