Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Docs Suggestion - Update method definitions to use ECMAScript 2015 shorter syntax #9683
What problem does this feature solve?
Currently in the Vue docs, methods are defined using the
Current Example: https://vuejs.org/v2/guide/components.html
But it is very common in tutorials, articles, and other Vue apps to use the shorter method definition syntax, described by MDN here:
It would improve readability and minimize context-switching if the Vue docs could also use this newer syntax. Outside of the Vue documentation, it seems more and more rare to find methods with the older syntax.
What does the proposed API look like?