AngularJS-translation
AngularJS-translation copied to clipboard
HowTo - How to surround text with tag conditionally in AngularJS?
How to surround text with tag conditionally in AngularJS?
<div ng-switch="!!link">
<a ng-href="{{link}}" ng-switch-when="true">linked</a>
<span ng-switch-when="false">notlinked</span>
</div>
credit Umur Kontacı