Skip to content

Add 2 examples on how to use injection in props/data #800

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
Mar 3, 2017

Conversation

rayrutjes
Copy link
Contributor

@rayrutjes rayrutjes commented Mar 3, 2017

@rayrutjes
Copy link
Contributor Author

Let me know if you want me to fine tune this.

const Child = {
inject: ['foo'],
data () {
return {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix indentation here. L972 - L975 have extra indentation.

@rayrutjes rayrutjes force-pushed the add-injection-examples branch from 93f4f71 to be2b056 Compare March 3, 2017 10:46
@rayrutjes rayrutjes force-pushed the add-injection-examples branch from be2b056 to c40de74 Compare March 3, 2017 10:51
@rayrutjes
Copy link
Contributor Author

Should be better now 👍

@kazupon kazupon merged commit 1664068 into vuejs:master Mar 3, 2017
@rayrutjes rayrutjes deleted the add-injection-examples branch March 4, 2017 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants