Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default as function returning object #49

Open
d1manson opened this issue Mar 26, 2019 · 0 comments
Open

default as function returning object #49

d1manson opened this issue Mar 26, 2019 · 0 comments

Comments

@d1manson
Copy link

I assumed that to use an object as a default value I needed to return it from a function, as in main vue props, but this appears not to be the case - instead it appears you should provide the default object directly.

On reflection this does make sense on a couple of levels, but it would be good to mention it in the docs!

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant