Hi Janarthanan,
Your directive is great; simple and efficient. I suggest you could use toggleClass which is available in Angular's jqLite: (https://docs.angularjs.org/api/ng/function/angular.element)
angular.forEach(classes, function(c) { element.toggleClass(c); });
Hi Janarthanan,
Your directive is great; simple and efficient.
I suggest you could use toggleClass which is available in Angular's jqLite:
(https://docs.angularjs.org/api/ng/function/angular.element)