change img source based on angularjs expression <p>So I'm trying to change the source of the image depending on an expression to see if its true or not.</p> <p><strong>HTML</strong></p> <pre><code>&lt;img ng-src="category.content.Value &gt;= category.content.ValueOneWeekAgo ? 'Images/green_arrow.png' : 'Images/red_arrow.png'" /&gt; </code></pre> <p>This is how the rendered html looks like:</p> <pre><code>&lt;img ng-src="category.content.Value &gt;= category.content.ValueOneWeekAgo ? 'Images/green_arrow.png' : 'Images/red_arrow.png'" src="category.content.Value &amp;gt;= category.content.ValueOneWeekAgo ? 'Images/green_arrow.png' : 'Images/red_arrow.png'"&gt; </code></pre> <p>I know the variables contains values which was confirmed by debugging. Probably something simple but i can't seem to figure it out.</p>