R
R
Ruslan Absalyamov2018-10-24 10:26:28
Vue.js
Ruslan Absalyamov, 2018-10-24 10:26:28

How to call a function inside a component?

I have such a problem that I cannot access the function that is inside the component, that is, when I do filtering, I access the filterdList function from the computed employeeList. I didn’t understand how this is done, I constantly get errors [Vue warn]: Error in render: "TypeError: this.filterdList is not a function"
This all happens in the App.vue:167 component
https://codesandbox.io/ s/pyvjxxnnvj

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-10-24
@rusline18

Is it okay that filterdList is computed and not a method?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question