Skip to content

Convert unexplained variables to arguments in an emits example #960

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

Merged

Conversation

skirtles-code
Copy link
Contributor

This came from a conversation on Discord where someone got confused by this example.

email and password are used inside the method but it isn't clear where they come from. While making them data properties would probably be more realistic, adding them as arguments is a simpler change.

@NataliaTepluhina NataliaTepluhina merged commit 2400973 into vuejs:master Mar 24, 2021
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

Successfully merging this pull request may close these issues.

2 participants