-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
docs (#2528): add references to help people new to getter functions i… #2817
docs (#2528): add references to help people new to getter functions i… #2817
Conversation
✅ Deploy Preview for vuejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I don't think getter function in Vue's context is same as That MDN link just shows things like |
Then perhaps a better approach would be to include it into Glossary under its own label? 🤔 |
Any idea why the term "getter function" is used so consistently? Maybe use "value-returning-function" or "function that returns a value" instead to make it more clear that it's not a special concept? |
Further down in the description, there's the following snippet:
I believe this is the concept that we are referring to, though maybe I'm wrong. |
W00t! |
Description of Problem
Getter functions are referenced a lot in docs, but if you're new to JS, it is unclear whether this is a Vue thing or a JS thing.
Proposed Solution
Similar to how acronyms are defined at the beginning of each article before being used throughout the rest, adding a link referencing to what getters / setters are can help provide clarity to people newer to JavaScript and haven't encountered these concepts yet.
Additional Information
Related issue #2528