Skip to content

Commit 90d5e90

Browse files
committed
Added the param attributes for <component> and gave keep-alive a header in the guide.
1 parent 8a74702 commit 90d5e90

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/api/index.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ type: api
970970
### vm.$watch( expOrFn, callback, [options] )
971971

972972
- **Arguments:**
973-
- `{String|Function} expOrFn`
973+
- `{String | Function} expOrFn`
974974
- `{Function} callback`
975975
- `{Object} [options]`
976976
- `{Boolean} deep`
@@ -1290,7 +1290,7 @@ type: api
12901290
### vm.$appendTo( elementOrSelector, [callback] )
12911291

12921292
- **Arguments:**
1293-
- `{Element|String} elementOrSelector`
1293+
- `{Element | String} elementOrSelector`
12941294
- `{Function} [callback]`
12951295

12961296
- **Returns:** `vm` - the instance itself
@@ -1302,7 +1302,7 @@ type: api
13021302
### vm.$before( elementOrSelector, [callback] )
13031303

13041304
- **Arguments:**
1305-
- `{Element|String} elementOrSelector`
1305+
- `{Element | String} elementOrSelector`
13061306
- `{Function} [callback]`
13071307

13081308
- **Returns:** `vm` - the instance itself
@@ -1314,7 +1314,7 @@ type: api
13141314
### vm.$after( elementOrSelector, [callback] )
13151315

13161316
- **Arguments:**
1317-
- `{Element|String} elementOrSelector`
1317+
- `{Element | String} elementOrSelector`
13181318
- `{Function} [callback]`
13191319

13201320
- **Returns:** `vm` - the instance itself
@@ -1373,7 +1373,7 @@ type: api
13731373
### vm.$mount( [elementOrSelector] )
13741374

13751375
- **Arguments:**
1376-
- `{Element|String} [elementOrSelector]`
1376+
- `{Element | String} [elementOrSelector]`
13771377

13781378
- **Returns:** `vm` - the instance itself
13791379

@@ -1784,6 +1784,10 @@ type: api
17841784
- **Attributes:**
17851785
- `is`
17861786

1787+
- **Param Attributes:**
1788+
- [`keep-alive`](/guide/components.html#keep-alive)
1789+
- [`transition-mode`](/guide/components.html#transition-mode)
1790+
17871791
- **Usage:**
17881792

17891793
Alternative syntax for invoking components. Primarily used for dynamic components with the `is` attribute:

src/guide/components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,7 @@ new Vue({
652652
<!-- component changes when vm.currentview changes! -->
653653
</component>
654654
```
655+
### `keep-alive`
655656

656657
If you want to keep the switched-out components alive so that you can preserve its state or avoid re-rendering, you can add a `keep-alive` directive param:
657658

0 commit comments

Comments
 (0)