When I used vue.js to write a paging function, I wrote a filter and found a strange error.
When debugging the console, an error message is prompted:
Failed to resolve filter: HomePage
console error message.jpg
My original writing method:
Original error writing.jpg
Cause of error:
After my own exploration, I found out that it was a problem with the error in the code sequence .
Since the pageList is executed first and the Vue is executed later, the final adjusted writing method is:
Correct writing after modification.jpg
Author: = King Kong=
Article address: http://www.cnblogs.com/woaic
This article has been compiled into the "Vue.js Front-end Component Learning Tutorial", and everyone is welcome to learn and read.
For tutorials on vue.js components, please click on the special topic vue.js component learning tutorial to learn.
For more vue learning tutorials, please read the special topic "vue practical tutorial"
The above is all the content of this article. I hope it will be helpful for everyone to solve the error of Vue.js Failed to resolve filter. I also hope that everyone will continue to pay attention to more exciting content from Wulin.com. Thank you.