Skip to content

Commit

Permalink
Change link to relative (vuejs#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Sokolov authored and kazupon committed Apr 27, 2017
1 parent 0f99909 commit 675b512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/guide/render-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ Everything the component needs is passed through `context`, which is an object c
- `data`: The entire data object passed to the component
- `parent`: A reference to the parent component
- `listeners`: (2.3.0+) An object containing parent-registered event listeners. This is simply an alias to `data.on`
- `injections`: (2.3.0+) if using the [`inject`](https://vuejs.org/v2/api/#provide-inject) option, this will contain resolved injections.
- `injections`: (2.3.0+) if using the [`inject`](../api/#provide-inject) option, this will contain resolved injections.

After adding `functional: true`, updating the render function of our anchored heading component would simply require adding the `context` argument, updating `this.$slots.default` to `context.children`, then updating `this.level` to `context.props.level`.

Expand Down

0 comments on commit 675b512

Please sign in to comment.