Is there a way, similar to KnockoutJS to quick and easy render content from a template by Id?
<script type="text/html" id="template-example"><span>Hello world!</span></script>
<div data-bind="template: '#template-example'"></div>
I've read the documentation but did not find anything, and also tried to create a component called quick-template where the template attribute used a vale from props, but I did not render anything. Probably because the template is bound before props are populated
Version 2.6.12
from VueJS quick render template
No comments:
Post a Comment