Skip to content

If props and data are both present in the component declaration, props will not been initialised with default value. #1072

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

Closed
federicodionisi opened this issue Jul 23, 2015 · 0 comments

Comments

@federicodionisi
Copy link

Here you can fine two examples, one with and one without data property on the $parent component:

https://jsfiddle.net/wLx0j53o/3/

https://jsfiddle.net/wLx0j53o/4/

When data is present, props seems to be initialised only if declared in the template.

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

No branches or pull requests

2 participants