Let's say I have two HTML elements with the same tag, but each with a different set of properties. How can I conditionally choose between them?
I have the following two tags:
<a ui-sref="root.one(::{param: value})">
<a target="_blank" href="{{::model}}">
I need to conditionally choose one of them, and add other markup until the closing tag. Can something like this work?
<a ng-if="::condition" ui-sref="root.one(::{param: value})">
<a ng-else target="_blank" href="{{::model}}">
<div>
more nodes
</div>
</a>