I am trying to use ng-attr to conditionally add an attribute to an element. My code is something like this:
<label for="theID"
ng-attr-disabled="{{true || undefined}}"
class="control-label">
Some Label
</label>
What I get by inspecting the element is this:
<label translate="" for="theID"
ng-attr-disabled="{{true || undefined}}"
class="control-label ng-scope" disabled="disabled">
Some Label
</label>
But expectation is:
<label translate="" for="theID"
ng-attr-disabled="{{true || undefined}}"
class="control-label ng-scope"
disabled>
Some Label
</label>
am I wrong altogether about how it works?
Thanks