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 a Vue instance didn't receive the `el` option at instantiation, it will be in "unmounted" state, without an associated DOM element. `vm.$mount()` can be used to manually start the mounting/compilation of an unmounted Vue instance.
777
+
778
+
If `elementOrSelector` argument is not provided, the element is managed in Vue instance will be created as an out-of-document DOM element, and you will have to use DOM API to insert it into the document yourself.
779
+
780
+
If `hydrating` argument is provided as `true`, in the rendering process of this method, run the DOM elements hydration.
781
+
782
+
The method returns the instance itself so you can chain other instance methods after it.
783
+
784
+
-**Example:**
785
+
786
+
```js
787
+
var MyComponent =Vue.extend({
788
+
template:'<div>Hello!</div>'
789
+
})
790
+
791
+
// create and mount to #app (will replace #app)
792
+
newMyComponent().$mount('#app')
793
+
794
+
// the above is the same as:
795
+
newMyComponent({ el:'#app' })
796
+
797
+
// or, compile off-document and append afterwards:
0 commit comments