0

I am trying to bind data to the link's href attribute instead, polymer just returns the code as is.

Expectation A screen acpture of hardcoded values

Reality enter image description here

Can someone help me understand why it's not working so that I may fix it? thank you.

  • 1
    It seem to me that you are doing string interpolation. Try wrapping that whole statement inside the `href$=` into a [computed binding](https://www.polymer-project.org/1.0/docs/devguide/data-binding.html#annotated-computed). – Neil John Ramal Jun 03 '15 at 10:47

1 Answers1

3

I just made a very similar question, I think it may apply to yours as well. Apparently the string interpolation is not supported yet so you may want to try with computed properties.

Community
  • 1
  • 1
fray88
  • 820
  • 1
  • 7
  • 23