A
A
AlexisKmetik2019-05-31 18:02:26
PHP
AlexisKmetik, 2019-05-31 18:02:26

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

2 answer(s)
G
grinat, 2019-06-01
@AlexisKmetik

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.

U
userNCh, 2019-06-01
@userNCh

Vue asynchronous components.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question