v13.1.0
-
Support for compiling templates for functional components. This feature requires
vue
andvue-template-compiler
>= 2.5.0.To denote a template that should be compiled as a functional component, add the
functional
attribute to the template block. Also, props need to be accessed asprops.xxx
.<template functional> <div>{{ props.foo }}</div> </template>