角度ng-hide(已显示某些内容)

时间:2018-10-18 00:17:48

标签: angularjs ionic-framework

嗨,我已经有一个基于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>

0 个答案:

没有答案