-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Trying to amp-bind [href] on <a> tag #12610
Comments
Thanks for filing this. You need to wrap the URL in quotes to make it a string (similar to JS). <a [href]="'example.com'"> You can also use |
Weird, I'll take a look. Thanks! |
To be frank, our website launching date is around the corner, can I privately chat you through slack on this and also any other urgent issues that I am not too sure it only happens to us or it is the nature behavior? I know this request is a bit ridiculous, but commenting on github is a bit inefficient and slow for us. |
Sure, my Slack handle is the same. I'll be online only intermittently until next Tuesday. |
We found the root cause, the |
still appreciate ur guys to investigate into this. Thx William. |
Besides Method 1 : By using
|
Demo page up at https://randomtestapp-a5a6f.firebaseapp.com/dynamic-href-in-amp-list.html |
Ah, this is probably due to the |
@leonalicious Verified this is fixed on version 1515455265699. |
I'm interested to see method 2 to work. Right now it doesn't seem to be able to take in amp-state or allow concatenation of parameters. |
Is there a way to concat dynamic value to end of the url? |
Is there a way to concat dynamic value to end of the url? yes i also want to know like how to use dynamic url tag after static url like my domain is same but id is different after static , so how will i use it in navigate to |
Hi @choumx , I am facing another issue again with
amp-bind
, we do have requirement to dynamically set the[href]
on<a>
tag. By default behavior,[href]
does prepend 'https://domain.name' BUT amp.bind does not recognize ':' colon symbol. I personally dont see any chance that[href]
will work in any case because of the conflicting of preprend colon symbol from[href]
whileamp.bind
is not recognizing colon symbol. I tried to google around and couldn't find any example with the use of[href]
, while there is a guy on [stackoverflow](https://stackoverflow.com/questions/46286976/how-can-i-perform-string-manipulations-inside-an-amp-list-template) is facing the same issue as I am. Please advise how can I achieve amp-bind with [href], appreciate your help on this , much thanks.
The text was updated successfully, but these errors were encountered: