title: Set Image Src in TypeScript
body: <p>I'm using ionic 2 and want to load a picture during runtime. In the past projects I always did it like this:</p>
  
  <pre><code>bikeImage.src = "data:image/jpeg;base64," + bikeResult.image;
  </code></pre>
  
  <p>But it doesn't work in TypeScript.</p>
  
  <p>My HTML looks like this.</p>
  
  <pre><code>&lt;img id='bikeImage'/&gt;
  </code></pre>
  
  <p>It says, that src is a unresolved variable.</p>
  
  <p>I thought that every JavaScript code works in TypeScript as well. Am I wrong?</p>
  
  <p>Does anybody have an idea how to fix this?</p>
  
  <p>Thanks in advance.</p>