Skip to content

Added the param attributes for <component> to the API and gave keep-alive a header in the guide... #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ type: api
### vm.$watch( expOrFn, callback, [options] )

- **Arguments:**
- `{String|Function} expOrFn`
- `{String | Function} expOrFn`
- `{Function} callback`
- `{Object} [options]`
- `{Boolean} deep`
Expand Down Expand Up @@ -1290,7 +1290,7 @@ type: api
### vm.$appendTo( elementOrSelector, [callback] )

- **Arguments:**
- `{Element|String} elementOrSelector`
- `{Element | String} elementOrSelector`
- `{Function} [callback]`

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

- **Arguments:**
- `{Element|String} elementOrSelector`
- `{Element | String} elementOrSelector`
- `{Function} [callback]`

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

- **Arguments:**
- `{Element|String} elementOrSelector`
- `{Element | String} elementOrSelector`
- `{Function} [callback]`

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

- **Arguments:**
- `{Element|String} [elementOrSelector]`
- `{Element | String} [elementOrSelector]`

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

Expand Down Expand Up @@ -1784,6 +1784,10 @@ type: api
- **Attributes:**
- `is`

- **Param Attributes:**
- [`keep-alive`](/guide/components.html#keep-alive)
- [`transition-mode`](/guide/components.html#transition-mode)

- **Usage:**

Alternative syntax for invoking components. Primarily used for dynamic components with the `is` attribute:
Expand Down
1 change: 1 addition & 0 deletions src/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ new Vue({
<!-- component changes when vm.currentview changes! -->
</component>
```
### `keep-alive`

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:

Expand Down