Can someone point me how to do a conditional href rather than duplication an a tag to do a hide/show.
Here's what I'm trying to do here, if DisplayLocation is null then use a string of "unknown" otherwise use the location. I tried something like x ? y : "unknown" but I dont think that works in href.
<a class="btn-main orange" href="#!/movie-details/
{{movie.Item.DisplayLocation | prettify}}/
{{movie.Item.Title | prettify}}/{{movie.Item.Id}}"
id="view--{{$index}}"> View
</a>
Fix:
<a class="btn-main orange" data-ng-href="#!/movie-details/
{{movie.Item.DisplayLocation ?
movie.Item.DisplayLocation : 'unknown' | prettify}}/
{{movie.Item.JobTitle | prettify}}/
{{movie.Item.Id}}"
id="view--{{$index}}">View
</a>
ng-href