• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Vue.JS by
Q:
What are Components in Vue.js?

1 Answer

0 votes
by

Components are one of most powerful features of Vue js.In Vue components are custom elements that help extend basic HTML elements to encapsulate reusable code.

Following is the way to register a Vue component inside another component:

export default {

  el: '#your-element'

  components: {

      'your-component'

  }

}

Related questions

0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Oct 7, 2019 in Vue.JS by Tate
...