BartlomiejSkwira
8/23/2013 - 11:52 AM

dynamic classes

dynamic classes

<div ng-class="{ active: user.id == activeId }">
  Dynamic
</div>

<!-- In this case active class will be added to the element as long as user.id matches activeId from the $scope object! -->