displaying an embedded image in angular2
<p>I'm working on a project in angular2, which involves loading an image from a database directly (base64 encoded). In angular1, one could simply load it as follows:</p>

<pre><code>&lt;img data-ng-src="data:image/jpg;base64,{{entry.img}}" /&gt;
</code></pre>

<p>where entry.img is the raw image data. However, I have no idea how to do this in angular2. I've tried </p>

<pre><code>&lt;img [src]="data:image/jpg;base64,{{entry.img}}" /&gt;
</code></pre>

<p>but that doesn't work, as angular still tries to load the image from a URL.</p>