vue-typescript icon indicating copy to clipboard operation
vue-typescript copied to clipboard

local template

Open davidm-public opened this issue 7 years ago • 0 comments

Hi, just wondering how you'd insert a

@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.

davidm-public avatar May 13 '17 01:05 davidm-public