I have this markup
<p>{{ !job.AdditionalNotes ? "No additional notes." : job.AdditionalNotes }}</p>
I would like to emphasize There are no additional notes using something like.
<p>{{ !job.AdditionalNotes ? <em>"No additional notes."</em> : job.AdditionalNotes }}</p>
Is there a way to do this without using ng-if and ng-show for this while keeping the ternary operator?
angularjs
naveen
source share