DOC: Note app.mount replaces target with tree (#449)
Make sure users are aware of potential issue with removal of node.
This commit is contained in:
committed by
Yoshua Wuyts
parent
044dd2254b
commit
5b4083adfd
@@ -283,7 +283,9 @@ custom event listener or the matched views.
|
|||||||
|
|
||||||
### `app.mount(selector)`
|
### `app.mount(selector)`
|
||||||
Start the application and mount it on the given `querySelector`. Uses
|
Start the application and mount it on the given `querySelector`. Uses
|
||||||
[nanomount][nanomount] under the hood.
|
[nanomount][nanomount] under the hood. This will _replace_ the selector provided
|
||||||
|
with the tree returned from `app.start()`. If you want to add the app as a child
|
||||||
|
to an element, use `app.start()` to obtain the tree and manually append it.
|
||||||
|
|
||||||
### `tree = app.start()`
|
### `tree = app.start()`
|
||||||
Start the application. Returns a tree of DOM nodes that can be mounted using
|
Start the application. Returns a tree of DOM nodes that can be mounted using
|
||||||
|
|||||||
Reference in New Issue
Block a user