title: How to represent image instead of data-binding vale? Using angular
body: <p>I am new to angular and little confused with the concepts, can any one take minute and let me know how can i display <code>green.png</code> image if <code>dev.status</code> is <code>1</code> and <code>red.png</code> if d<code>ev.status</code> is <code>2</code>? The following is what i tried but it seems to be the wrong method:</p>
  
  <pre><code>&lt;tr *ngFor="let dev of devices"&gt;                              
  &lt;td&gt;{{dev.slc_id}}&lt;/td&gt;
  &lt;td&gt;{{dev.location}}&lt;/td&gt;
  
  &lt;td&gt;{{dev.status =="1 "? '.assets/img/green.png' : '.assets/img/red.png' }}&lt;/td&gt;  
  &lt;/tr&gt;
  </code></pre>