Skip to content

Commit 5192278

Browse files
fix(api): remove arguments of unmount api (#770)
* fix(api): remove arguments of `unmount` api * Update src/api/application-api.md Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 908a334 commit 5192278

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/api/application-api.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -261,13 +261,9 @@ app.provide('user', 'administrator')
261261

262262
## unmount
263263

264-
- **Arguments:**
265-
266-
- `{Element | string} rootContainer`
267-
268264
- **Usage:**
269265

270-
Unmounts a root component of the application instance on the provided DOM element.
266+
Unmounts a root component of the application instance.
271267

272268
- **Example:**
273269

@@ -285,7 +281,7 @@ const app = createApp({})
285281
app.mount('#my-app')
286282

287283
// Application will be unmounted 5 seconds after mount
288-
setTimeout(() => app.unmount('#my-app'), 5000)
284+
setTimeout(() => app.unmount(), 5000)
289285
```
290286

291287
## use

0 commit comments

Comments
 (0)