Skip to content

Commit 34d51d0

Browse files
committed
tweak init wording
1 parent e85dde8 commit 34d51d0

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/api/index.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ type: api
9191
- **Default:** `false`
9292

9393
- **Usage:**
94-
94+
9595
``` js
9696
Vue.config.convertAllProperties = true
9797
```
@@ -126,7 +126,7 @@ type: api
126126
firstName: 'Walter',
127127
lastName: 'White',
128128
alias: 'Heisenberg'
129-
}
129+
}
130130
})
131131
// mount it on an element
132132
profile.$mount('#mount-point')
@@ -194,7 +194,7 @@ type: api
194194
- `{Function | Object} [definition]`
195195

196196
- **Usage:**
197-
197+
198198
Register or retrieve a global directive.
199199

200200
``` js
@@ -563,7 +563,7 @@ type: api
563563

564564
### replace
565565

566-
- **Type:** `Boolean`
566+
- **Type:** `Boolean`
567567

568568
- **Default:** `true`
569569

@@ -622,7 +622,7 @@ type: api
622622

623623
- **Details:**
624624

625-
Called synchronously after the instance has already been initialized, but not has started processing the options and the data for set up the scope.
625+
Called synchronously after the instance has just been initialized, before data observation and event / watcher setup.
626626

627627
- **See also:** [Lifecycle Diagram](/guide/instance.html#Lifecycle_Diagram)
628628

@@ -631,7 +631,7 @@ type: api
631631
- **Type:** `Function`
632632

633633
- **Details:**
634-
634+
635635
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.
636636

637637
- **See also:** [Lifecycle Diagram](/guide/instance.html#Lifecycle_Diagram)
@@ -641,7 +641,7 @@ type: api
641641
- **Type:** `Function`
642642

643643
- **Details:**
644-
644+
645645
Called right before the compilation starts.
646646

647647
- **See also:** [Lifecycle Diagram](/guide/instance.html#Lifecycle_Diagram)
@@ -671,23 +671,23 @@ type: api
671671
- **Type:** `Function`
672672

673673
- **Details:**
674-
674+
675675
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.
676676

677677
### detached
678678

679679
- **Type:** `Function`
680680

681681
- **Details:**
682-
682+
683683
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.
684684

685685
### beforeDestroy
686686

687687
- **Type:** `Function`
688688

689689
- **Details:**
690-
690+
691691
Called right before a Vue instance is destroyed. At this stage the instance is still fully functional.
692692

693693
- **See also:** [Lifecycle Diagram](/guide/instance.html#Lifecycle_Diagram)
@@ -1098,7 +1098,7 @@ type: api
10981098
}
10991099
}
11001100
})
1101-
1101+
11021102
// set an existing path
11031103
vm.$set('a.b', 2)
11041104
vm.a.b // -> 2
@@ -1341,7 +1341,7 @@ type: api
13411341
- **Returns:** `vm` - the instance itself
13421342

13431343
- **Usage:**
1344-
1344+
13451345
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).
13461346

13471347
### vm.$nextTick( callback )
@@ -1401,7 +1401,7 @@ type: api
14011401
var MyComponent = Vue.extend({
14021402
template: '<div>Hello!</div>'
14031403
})
1404-
1404+
14051405
// create and mount to #app (will replace #app)
14061406
new MyComponent().$mount('#app')
14071407

@@ -1731,7 +1731,7 @@ type: api
17311731
- **Argument:** `id (required)`
17321732

17331733
- **Usage:**
1734-
1734+
17351735
Register a reference to a DOM element on its owner Vue instance's `$els` object for easier access.
17361736

17371737
- **Note:**
@@ -1921,7 +1921,7 @@ type: api
19211921
{{count}} {{count | pluralize 'item'}}
19221922
```
19231923

1924-
*1 => '1 item'*
1924+
*1 => '1 item'*
19251925
*2 => '2 items'*
19261926

19271927
``` html
@@ -1930,7 +1930,7 @@ type: api
19301930

19311931
Will result in:
19321932

1933-
*1 => '1st'*
1933+
*1 => '1st'*
19341934
*2 => '2nd'*
19351935
*3 => '3rd'*
19361936
*4 => '4th'*
@@ -1942,7 +1942,7 @@ type: api
19421942
- `{Number} [indent] - default: 2`
19431943

19441944
- **Usage:**
1945-
1945+
19461946
Output the result of calling `JSON.stringify()` on the value instead of outputting the `toString()` value (e.g. `[object Object]`).
19471947

19481948
- **Example:**

0 commit comments

Comments
 (0)