Trying to set the initial state of an arrow that I am showing for a list that is sortable. There are three columns and each one has a link bound to an ng-click
that when clicked will sort the list.
It's working as I need it to but the state of the up and down arrows do not show until clicked. And when I click one the other disappears. What I would like is for all the arrows to always show even before the user clicks and for each one to change direction on click of any of the three.
The basic link is this:
<a href="javascript:void(0)" ng-click="orderByField='dateAdded'; reverseSort = !reverseSort" class="ghostButtonSort dateLabel flrt">Date Received
<span ng-show="orderByField == 'dateAdded'">
<span ng-show="!reverseSort">^</span>
<span ng-show="reverseSort">v</span>
</span>
</a>
And right now I just have a basic setup in the scope:
$scope.orderByField = 'conditionId';