Skip to content

Conversation

@dasDaniel
Copy link
Contributor

Description of Problem

Users are copying example from directives docs and getting into a problem where the directive doesn't seem to be working.

Proposed Solution

Use a string in the example

Additional Information

I've seen this cause confusion several times. The examples don't show a variable yellow defined, and because a string is expected the example, as is, will fail. I believe adding the extra ' quotes will make it clearer, and for anyone copy-pasting won't cause issues. Alternatively, the variable could be shown, but that would make examples longer.

I've seen this cause confusion several times. The examples don't show a variable `yellow` defined, and because a string is expected the example, as is, will fail. I believe adding the extra `'` quotes will make it clearer, and for anyone copy-pasting won't cause issues. Alternatively, the variable could be shown, but that would make examples longer.
Copy link
Member

@NataliaTepluhina NataliaTepluhina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dasDaniel thank you for fixing this! 👍🏻

@NataliaTepluhina NataliaTepluhina merged commit 6dfbcc6 into vuejs:master Oct 18, 2020
nick-lai pushed a commit to nick-lai/docs-next that referenced this pull request Dec 2, 2020
I've seen this cause confusion several times. The examples don't show a variable `yellow` defined, and because a string is expected the example, as is, will fail. I believe adding the extra `'` quotes will make it clearer, and for anyone copy-pasting won't cause issues. Alternatively, the variable could be shown, but that would make examples longer.
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