[Vuejs]-Accessing props in constructor vuejs

0👍

The constructor is of no use with vue-class-component. What you’re exporting is a constructor itself. Your ‘test’ var is immediately accesable within’ the component. Use the ‘created’ or ‘mounted’ hook to log it.

Leave a comment