Answer the question
In order to leave comments, you need to log in
Rendering Vue components in a PHP template (AJAX)?
There is a list on the project, each element has a set of buttons and other things implemented using Vue.js, the list is loaded dynamically as you scroll, but the view does not render new components from the template that the PHP script returns via ajax.
How to excite the view so that it sees the new components?
PS The request is outside the root view, because only components are needed. I don't understand how to correctly call the render function again.
Answer the question
In order to leave comments, you need to log in
Call new Vue and pass a new component to the constructor, insert the result of the call where necessary. Otherwise, it will embed as html.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question