title: Show default image in Angular2
body: <p>This is what I have in my html file:</p>
  
  <pre><code>&lt;img src="{{( REST_URL + userId) || this.defaultImage }}" height="200" /&gt;
  </code></pre>
  
  <p>REST_URL is user/ (on browser call <a href="http://localhost:8080/user/123456" rel="nofollow noreferrer">http://localhost:8080/user/123456</a> shows user image)</p>
  
  <p>in my component.ts file variables are defined as below:</p>
  
  <pre><code>readonly REST_URL = 'user/';
  userId: number;
  </code></pre>
  
  <p>Not all users have an image and I expect default image to be shown when the user doesn't have an image but it doesn't work... any ideas?</p>