0👍
The beforeCreate()
method is the very first method in the vue life cycle. The data is not reactive at this point, so any changes you make to the data in the beforeCreate()
method will not be reflected. Instead make the changes to the created()
or mounted()
methods.
For more info:
Source:stackexchange.com