I'm Using iron-ajax with iron-list and for the iron-image i need to concatenate text to the image source that has{{item.path}}
i tried this way
<iron-image style="width:80px; height:80px;" sizing="cover" src="http://mydomain/{{item.path}}.jpg" preload></iron-image>
But i get no image loaded and upon inspecting a list item it doesn't insert the path of the image coming from json data.
src="http://mydomain/{{item.path}}.jpg"
What is the way to concatenate the above
by itself src="{{item.path}}"
i see the path when i inspect an item
Thanks
String interpolation is not yet supported in Polymer 1.0. You will need to use a computed binding.
For instance:
I have answered a similar question here.
i think this example may solve you problem:
then you can use in the following way:
you may also look here for further investigation and more comprehensive examples.
i think you forgot to declare item.path
you should Polymer({ item.path: "/set/your/path"});