Skip to content
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

when using latest version of Vue props don't init properly #7

Open
hendrikras opened this issue Mar 3, 2019 · 0 comments
Open

when using latest version of Vue props don't init properly #7

hendrikras opened this issue Mar 3, 2019 · 0 comments

Comments

@hendrikras
Copy link

Im at the end of lecture 76, and I noticed that the props for the movie-list component were not populated with arrays but with undefined.
So turns out I have Vue 2.1.10 and in order to get it to 'sort of' work I have to change the data member of the root component to return a function:

new Vue({
el: '#app',
data() {
return {
genre: [],
time: []
}
...

And this causes props to be updated on the root component when you click the filter, not movie-list.
when I revert to 2.1.0 everything seems fine though, so Ill continue using that for now.

@hendrikras hendrikras changed the title when using latest version of node props don't init properly when using latest version of Vue props don't init properly Mar 3, 2019
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

1 participant