Skip to content

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

@hendrikras

Description

@hendrikras

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions