Skip to content
Advertisement

Render custom template into Vue.js render function

Can Vue render function receive part template from outer?

If there is a render function like bellow:

JavaScript

the custem_form such as like bellow:

JavaScript

or whatever the javascript-type that can explain as a form.

I want put it as the custom_form, and then render into the div (you see the custom_form_modal).

Is there a way to realize this?


EDIT-1

I render the template by the function custom_form_modal, then I can show the modal in a button click event, then I do not need write code into the invoking vue file’s <template>. This is my requirement.

Advertisement

Answer

Finally, I read the document, and found the solution to archive it:

JavaScript

use the custom_form_modal :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement