I am encountering a similar issue as discussed in the following post: How to use ng-show and ng-hide with buttons in AngularJS
In my case, I have play/pause buttons where the ng-show/hide functionality is working. However, the problem lies in the fact that I still briefly see both objects for about 1ms.
I have structured them consecutively like this:
<span ng-show="status() != 1">
<span class="fa fa-play" ng-click="play()"></span>
</span>
<span ng-hide="status() != 1">
<span class="fa fa-pause" ng-click="pause()"></span>
</span>
There are other elements before and after these two buttons (prev/next), and when I quickly toggle between play/pause, sometimes I don't notice the transition between showing and hiding them efficiently. Occasionally, I do observe either the pause or play button appearing for 1ms before disappearing.
This inconsistency is really bothering me. Can anyone suggest an alternative approach to tackle this issue?