Vue.js Example

Inline Template


This is an inline template. Inline templates can only have one child element so this content is wrapped within a div element. Inline templates are defined with the inline-template attribute.

As always, be sure to read the docs. It is preferred to define your template within your Vue component or .vue file. Inline templates simply give authors a lot of template flexibility.

In this simple example, you can add or remove boxes. Give it a try!

You have {{boxes}} {{boxesText}}.

Box content