Noticed recently that the ng-class
allows for assignment operators - is this a bug or a feature?
<li ng-repeat="cat in cats" ng-class="{active: cat = 'some-text'}">{{cat}}</li>
The correct usage would be:
<li ng-repeat="cat in cats" ng-class="{active: cat == 'some-text'}">{{cat}}</li>
For more details, check out the plunk behavior
Is allowing an assignment operator a bug or a feature?