Skip to content

local template #24

@davidm-public

Description

@davidm-public

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions