I am trying to use ng-class of angular. I have a function which returns the class based on the parameters we send it. How can i achieve it ?
Here\'s what i tried:>
Update
You can achieve this by like this
myapp.controller('myCtrl', function ($scope) { $scope.getClass = function(a){ return a; } });
and in template
text
See My full working updated fiddle