The template property can be defined as a function that is now injected with $element and $attrs locals. If the template property is a function then it needs to return an String representing the HTML to compile:
This reminds me of a react component with props and a render function.
1
u/xCavemanNinjax Nov 14 '15
This reminds me of a react component with props and a render function.