Recently, I encountered some HTML code that looks like this...
<ul id="sidemenu" class="wraplist wrapper-menu">
<li class="auto" ng-class='{"active": active == 1 }' ng-click="makeActive(1)">
<span class="arrow material-icons">arrow_down</span>
<li>
<li class="auto" ng-class='{"active": active == 2 }' ng-click="makeActive(2)">
<span class="arrow material-icons">arrow_down</span>
<li>
<ul>
Whenever ng-click=makeActive() is triggered, I aim to replace the text 'arrow_down' with 'arrow_right' for that specific < li> element only. Additionally, if the same element is clicked again, I want to switch it back to 'arrow_down'. The span text of all other < li> elements should remain unchanged. Is there a way to achieve this using AngularJS, potentially through angular.element? Or would another approach be more suitable?