1
<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>
こんにちは、
私は他の上に1を座っている2つのボタンがあると私は、フラグ(isSearchIconVisible)で視覚的にそれらの間を切り替えたいです。 Logiclyはうまく動作しますが、一緒に見て重複していることが500msあります。 私はdirectiveを使ってng-showが完了した "イベント"をキャッチしました。
2番目のボタンには「my-show」とは何ですか? –
コードをフィドルで提供できますか? – Indhu