I have two css classed triangle
and triangleo
<div class="triangle" ng-repeat="chatdata in chats">
<p>{{chatdata.msg}}</p>
<p> {{chatdata.time}}</p>
</div>
So if chatdata.usrId == 123 class should be triangle
else triangleo
I have two css classed triangle
and triangleo
<div class="triangle" ng-repeat="chatdata in chats">
<p>{{chatdata.msg}}</p>
<p> {{chatdata.time}}</p>
</div>
So if chatdata.usrId == 123 class should be triangle
else triangleo
you can simply use
ng-class