You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes we need to set objects/arrays as default values of property in props. In these cases we need to specify a function that will return default value (docs link).
My suggestion is to automatically bind this kind of functions to current vm. So we can get access to vm context.
I came across this trying to migrate to 1.0. Since props are separated from data now, I can't implement logic that was in data function before. So, seems props default values are not so flexible as data for now.
In my case components can get some default values from local cache. Cache service is available in vm.
Sometimes we need to set objects/arrays as default values of property in
props
. In these cases we need to specify a function that will return default value (docs link).My suggestion is to automatically bind this kind of functions to current vm. So we can get access to vm context.
Now there are in global context:
The text was updated successfully, but these errors were encountered: