[Vuejs]-How can I use single file vue component with symfony 4?

0πŸ‘

βœ…

in app.js registered 2 components:

  1. Time – registered localy
  2. vue-time – registered global

if you want register Time global add in app.js this:

*do not use name Time https://developer.mozilla.org/uk/docs/Web/HTML/Element/time

Vue.component(`Time`, Time)

in app.js delete this:

components: { Time }

then use tag <time></time> anywhere in your application

Leave a comment