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
Called synchronously after the instance is created. At this stage, the instance has finished processing the options which means the following have been set up: data observation, computed properties, methods, watch/event callbacks. However, DOM compilation has not been started, and the `$el` property will not be available yet.
Called when `vm.$el` is attached to DOM by a directive or a VM instance method such as `$appendTo()`. Direct manipulation of `vm.$el` will **not** trigger this hook.
676
676
677
677
### detached
678
678
679
679
-**Type:**`Function`
680
680
681
681
-**Details:**
682
-
682
+
683
683
Called when `vm.$el` is removed from the DOM by a directive or a VM instance method. Direct manipulation of `vm.$el` will **not** trigger this hook.
684
684
685
685
### beforeDestroy
686
686
687
687
-**Type:**`Function`
688
688
689
689
-**Details:**
690
-
690
+
691
691
Called right before a Vue instance is destroyed. At this stage the instance is still fully functional.
Remove the Vue instance's DOM element or fragment from the DOM. This method will trigger transitions if present. The callback is fired after the transition has completed (or immediately if no transition has been triggered).
1346
1346
1347
1347
### vm.$nextTick( callback )
@@ -1401,7 +1401,7 @@ type: api
1401
1401
var MyComponent =Vue.extend({
1402
1402
template:'<div>Hello!</div>'
1403
1403
})
1404
-
1404
+
1405
1405
// create and mount to #app (will replace #app)
1406
1406
newMyComponent().$mount('#app')
1407
1407
@@ -1731,7 +1731,7 @@ type: api
1731
1731
-**Argument:**`id (required)`
1732
1732
1733
1733
-**Usage:**
1734
-
1734
+
1735
1735
Register a reference to a DOM element on its owner Vue instance's `$els` object for easier access.
1736
1736
1737
1737
-**Note:**
@@ -1921,7 +1921,7 @@ type: api
1921
1921
{{count}} {{count | pluralize 'item'}}
1922
1922
```
1923
1923
1924
-
*1 => '1 item'*
1924
+
*1 => '1 item'*
1925
1925
*2 => '2 items'*
1926
1926
1927
1927
```html
@@ -1930,7 +1930,7 @@ type: api
1930
1930
1931
1931
Will result in:
1932
1932
1933
-
*1 => '1st'*
1933
+
*1 => '1st'*
1934
1934
*2 => '2nd'*
1935
1935
*3 => '3rd'*
1936
1936
*4 => '4th'*
@@ -1942,7 +1942,7 @@ type: api
1942
1942
-`{Number} [indent] - default: 2`
1943
1943
1944
1944
-**Usage:**
1945
-
1945
+
1946
1946
Output the result of calling `JSON.stringify()` on the value instead of outputting the `toString()` value (e.g. `[object Object]`).
0 commit comments