title: Get list of components in Vue 2
body: <p>I have to get the components in Vue 2:
  i the main page i have this:</p>
  <pre><code>import { component1, component2, component3, } from '@/components'
  export default {
    components: {
      component1,
      component2,
      component3
    }
  }
  </code></pre>
  <p>How I can do something like that:</p>
  <pre><code>methods: {
    getComponents () {
      return this.$components
    }
  }
  </code></pre>