嗨,我已经有一个基于ng-show条件的div显示,该条件来自真实的条件。如何单击
标记,上面写着“稍后下载”,并使用ng-hide使div消失?
<div ng-repeat="item in items">
<div class="download-now" ng-show="connected && item.purchased && !isDownloaded(item.guidebook_file)">
<h4>New Guide Found</h4>
<button ng-click="download(item.guidebook_file)" class="button button-block button-positive">
Download</button>
<p>Download Later</p>
</div>
</div>