1
我想在angularjs中使用ng-hide和ng-show編碼解決方案。在點擊隱藏之前,它會在隱藏之前延遲顯示視圖面板。請問可能是錯的。這是我製作的一名運動員。隱藏工作不正常
http://plnkr.co/edit/IiSwQ1cijiypdwIXV6K7?p=preview
這是代碼視圖:
<div ng-app="myApp">
<h1>Ng-show & ng-hide</h1>
<p class="description">Click on the "show"-link to see the content.</p>
<a href="" ng-click="showme=true">Show</a>
<button ng-click="showme=false">Hide</button>
<div class="wrapper">
<p ng-hide="showme">It will appear here!</p>
<h2 ng-show="showme">This is mah content, yo!</h2>
</div>
</div>
的
transition
財產點擊隱藏,它延遲了一會兒。我想避免這種行爲 – Blaze@JnG我沒有得到你? –
我想避免點擊隱藏按鈕的延遲。問候。 – Blaze