Cannot use protocols inside anchors with v-bind
See original GitHub issueVue.js version
2.1.6
Reproduction Link
http://jsfiddle.net/df4Lnuw6/83/
Steps to reproduce
<a :href="mailto:email">Send us an email</a>
<a :href="tel:telephone">Call us</a>
What is Expected?
Anchors should work when using v-bind
with protocols (mailto
, tel
, etc.), so when used in websites on mobile phones should raise the proper applications to handle those events.
What is actually happening?
Getting a compilation error on the template.
<div id="app">
{{ foo }}
<br>
<a :href="mailto:email">Send us an email</a>
<br>
<a :href="tel:telephone">Call us</a>
</div>
- invalid expression: :href="mailto:email"
- invalid expression: :href="tel:telephone"
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
bASSET [bLUNA] - Anchor Protocol
1. Navigate to the LUNA/bLUNA page in the bASSET page. · 2. Navigate to the MINT tab. · 3. Enter the amount of...
Read more >Can't use protocols with SwiftUI models? - Apple Developer
I've been using protocols to help model a hierarchy of different object types. As I try to convert my app to use SwiftUI,...
Read more >Tutorial of the Month — Anchor Protocol | by Xavier Meegan
A yield farming tutorial in Anchor, a savings protocol on Terra blockchain, using liquid staking derivatives minted by Lido DAO.
Read more >8. Configuration Reference — BIND 9 9.18.8 documentation
Defines DNSSEC trust anchors: if used with the initial-key or initial-ds keyword, trust anchors are kept up-to-date using RFC 5011 trust anchor maintenance;...
Read more >GROUND ANCHORS AND ANCHORED SYSTEMS
who drafted the figures and assisted in the layout of the document. ... bars cannot be accepted even though the grout tendon bond...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
<a :href="'mailto:' + email">Send us an email</a>
https://vuejs.org/v2/guide/migration.html#Interpolation-within-Attributes-removedIf using
vue-cli
/webpack
, this is a nice solution using template literals: