Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

vue does v-html inject html

return 'Hello <em>World</em>! My name is <my-name :name="$parent.name">
</my-name>!';

Usage will be:
<p v-markup="markup"></p>

When rendered, the above will be identical to doing this:
<p>
    Hello <em>World</em>! My name is <my-name :name="name"></my-name>!
</p>
Source by vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #inject #html
ADD COMMENT
Topic
Name
5+2 =