Skip to content

Revert "Document v-bind.attr shorthand in API section." #1658

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

Reverts #1571

Following discussion with @LinusBorg and others, it appears that the ^ shorthand isn't currently supported in the template compiler. While it almost works anyway, the attribute value is treated as a string rather than as an expression. It is not currently equivalent to using .attr.

The reason it almost works is because .attr is compiled into a ^ prefix, so using a ^ directly gives a similar result. Whether ^ was actually supposed to be used as a shorthand is unclear, so for now we're reverting the docs change. The documentation for ^ can be reintroduced if it gets proper support in the compiler.

@netlify
Copy link

netlify bot commented Apr 11, 2022

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 8d8526f
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/6254612404ee53000858dc72
😎 Deploy Preview https://deploy-preview-1658--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@NataliaTepluhina NataliaTepluhina merged commit f4e39de into main Apr 13, 2022
@NataliaTepluhina NataliaTepluhina deleted the revert-1571-LinusBorg-patch-v-bind-attr-shorthand branch April 13, 2022 08:10
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