Skip to content

Fix example and add example using setProps #102

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 2 commits into from
Oct 16, 2017
Merged

Fix example and add example using setProps #102

merged 2 commits into from
Oct 16, 2017

Conversation

lmiller1990
Copy link
Member

In response to #99

This fixes the otherwise not working example.

It also adds another example showing how to use propsData for a component that might have required props.

expect(wrapper.vm.foo).to.equal('bar')
```

You can also pass a `propsData` object, which will initialize the Vue instance with passed values. This is useful if you have a component or instance that has props which are `required`.
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove this section please"

This is useful if you have a component or instance that has props which are `required`.

I think the users will understand what it's useful for.

@lmiller1990
Copy link
Member Author

lmiller1990 commented Oct 16, 2017

@eddyerburgh Sure. I removed it.

@eddyerburgh eddyerburgh merged commit 020fc4d into vuejs:dev Oct 16, 2017
@lmiller1990 lmiller1990 deleted the issue-99 branch October 16, 2017 05:54
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.

2 participants