Hey everyone, I have a situation in my HTML where I need to add a specific attribute to a class before receiving a response from an API, and then remove it after the response.
Let me show you the HTML snippet:
<div class="artist-job-search-foo artist-filter" ng-click="$ctrl.changeTypeOfFilter({params: $index + 1, paramsTwo : 'true'});$ctrl.selectedTab = $index" role="button">Audition</div>
And here is how my API call looks like:
$scope.callFunction = function(){
// Add attribute to class artist-filter
// Make API call
// Remove attribute from class artist-filter
}