vue-typescript
vue-typescript copied to clipboard
local template
Hi, just wondering how you'd insert a inside another template? e.g:
@VueComponent({
template: ` <div>
<template id="greeting-template">
<h1>Welcome to coligo!</h1>
<button>login</button>
<button>signup</button>
<a href="http://coligo.io">Check out the other tutorials!</a>
</template>
<div>
<greeting></greeting>
</div>
</div>`
})
export class ClassA{
}
results in: vue.1.0.28.js:1141 [Vue warn]: Unknown custom element: <greeting> - did you register the component correctly? For recursive components, make sure to provide the "name" option.