modulerizr
Version:
Integrate a powerful, component based architecture to your legacy project in just a few steps
21 lines (16 loc) • 695 B
HTML
<html lang="en"><head>
<title>Include a Component plain Textcomponent</title>
</head>
<body>
<!-- This will be rendered to <div>Hello</div> -->
<div data-v-dd07d033 id="dd07d033" data-component="hello-world">Hello
</div>
<!-- This will be rendered to <div>Hello Gustav!!!</div> -->
<div data-v-dd07d033 id="dd07d033" data-component="hello-world">Hello Gustav!!!
</div>
<!-- This will be rendered to <div><span>1</span><span>Hello</span><span>2</span></div> -->
<div data-v-a0ac2df4 id="a0ac2df4" data-component="hello-world-slot-named"><span data-v-a0ac2df4>1</span>
<span data-v-a0ac2df4>Hello</span>
<span data-v-a0ac2df4>2</span>
</div>
</body></html>