Q:

The Following code represent the registered component.How we can call the custom component in my template

0

The Following code represent the registered component.How we can call the custom component in my template

Vue.component(‘my-component’, {
template: ‘my own component!’
})
new Vue({
el: ‘#demo’
})

  1. v-bind:my-component
  2. <my-component></my-component>
  3. v-my-component
  4. @my-component

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

B. <my-component></my-component>

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now