This?

<template if="data.image != null">
  <img src="{{data.image}}">
</template>
<template if="data.image == null">
  <img src="loading.jpg">
</template>

On Saturday, September 27, 2014 5:58:36 AM UTC-7, Sachin Kumar wrote:
>
> I am using a core-list on a section when data come I want to show/hide 
> item image conditionally i.e. when data.image come then the image src will 
> be {{data.image}} else image src should be default image.(data is the 
> attribute here which is an array containing data)
>
> I used template but it does not change i.e. either it will hide or show.
>
> Please tell me the solution for this problem.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/4bf04e27-d9fe-4eda-bfc2-eedf499d7253%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to