javascript - Angular expression in attribute -
i have page using angular im implementing popover bootstrap:
<img class="state-msg" data-toggle="popover" ng-popover data-content="{{item.status.message}}" data-trigger="hover" data-placement="top" ng-src="{{item.status.stateicon}}"/>
the data-content doesnt rendered correctly. returns literaly {{item.status.message}} instead of value of message.
does angular have issue w expressions in 'data-' attributes?
tnx
remove interpolation notation this. {{, }}
, angularjs string interpolation rather model binding.
data-content="item.status.message"
Comments
Post a Comment