For a setup like this:
HTML
<li ng-repeat="item in data.checkList">
<i ng-class="faClass(item.status)"> </i> <span>{{item.Name}}</span>
</li>
JS
$scope.data.checkList = [
{'status':'COMPLETED', 'name':'Task 1'},
{'status':'NOT STARTED', 'name':'Task 2'}
];
$scope.faClass = function(status){
console.log(status);
};
BROWSER CONSOLE
COMPLETED
NOT STARTED
COMPLETED
NOT STARTED
Is this behavior expected? How do I solve it and avoid the duplication?