<div>
<button type="submit" class="btnSubmit" ng-show="vm.isSearchIconVisible" after-hide="afterHide()" after-show="afterShow()">
<i class="iconMglass"></i>
</button>
<button type="reset" my-show="!vm.isSearchIconVisible" after-hide="afterHide()" after-show="afterShow()" class="clearTextButton" ng-click="vm.clearSearchText()" >
<span class="clearIcon">X</span>
</button>
Hi,
I have two buttons that sits one on top of the other and I want to switch between them visually with a flag (isSearchIconVisible). Logicly it works fine, but there is 500ms that they are seen together and overlapping. I've used directive to catch the ng-show completed "event".