Is it viable to apply ngMousedown to add a class to a div, and then use ngMouseup to remove the class once more? Currently, I am utilizing ng-mousedown="activateClass()". Within the activateClass() function, I modify $scope.className="data-active", which is then altered again with another function on ng-mouseup. Utilizing ng-class to incorporate the "data-active" class. I prefer not to utilize $scope.className and alter it through a controller function since this function is utilized for multiple divs, and I do not wish to add the class to all of them.
Appreciate your help!