[Vuejs]-Vue Js filters not working

3👍

When you initialize the component, you set model to an object.

I defined the data set as model: {} in data()

Objects do not have a filter method. Instead, initialize the model to an empty array.

data(){
    return {
        model: []
    }
}
👤Bert

Leave a comment