我想更改链接标题 我的傻瓜在这里给出了
<ul class="bk_crs_rslt">
<li ng-repeat="c in courses">
<h4> {{c.CourseName }}<img src="image/bk_ad_btn.jpg" /> </h4>
<p><span style="color:#337ab7;">{{c.CollegeName}}</span><br>{{c.CountryName}}</p>
<p>
<a href="#" ng-click="c.show = !c.show" ng-show="!c.show"><img class="info_arw" src="image/bk_down_arw.png" />More Information</a>
</p>
<div>
<p ng-show="!c.show">
<b>Tution Fee</b> : {{c.Fee}}<br>
<b>Level</b> : {{c.LevelName}}<br>
<b>Detail </b> : {{c.Detail}} <br>
<b>Duration </b> : {{c.Duration}}<br>
<b>Subject </b> : {{c.Subjec}}t<br>
<b>IELTS Score </b> : {{c.Score}}<br />
</p>
<p>
<a href="#" ng-click="c.show = !c.show"><img class="info_arw" src="image/bk_up_arw.png" />Hide Information</a>
</p>
</div>
</li>
</ul>
</div>
https://plnkr.co/edit/lsIypaBviXNvEi7Pwok4?p=preview
只有一个链接。如果我按下更多信息&#39;详情显示然后更改链接标题为&#39;隐藏信息&#39;反之亦然
请帮助答案 0 :(得分:0)
已经全部隐藏:
更改您的代码:https://plnkr.co/edit/tpz7RLxOdy8aUe2My63y?p=preview
<p ng-init="c.show = true" ng-show="c.show">
<a href="#" ng-click="c.show = !c.show"><img class="info_arw" src="image/bk_down_arw.png" />More Information</a>
</p>
<div ng-show="!c.show">
<p>
<b>Tution Fee</b> : {{c.Fee}}<br/>
<b>Level</b> : {{c.LevelName}}<br/>
<b>Detail </b> : {{c.Detail}}<br/>
<b>Duration </b> : {{c.Duration}}<br/>
<b>Subject </b> : {{c.Subject}}<br/>
<b>IELTS Score </b> : {{c.Score}}<br />
</p>
<p>
<a href="#" ng-click="c.show = !c.show"><img class="info_arw" src="image/bk_up_arw.png" />Hide Information</a>
</p>
</div>
<小时/> 已经全部开放:
或者您可以这样做:https://plnkr.co/edit/JVpuFqA9b05w5kjAnZGN?p=preview
<p>
<a href="#" ng-click="c.show = !c.show" ng-show="c.show">
<img class="info_arw" src="image/bk_down_arw.png" />More Information</a>
</p>
<div ng-show="!c.show">
<p>
<b>Tution Fee</b> : {{c.Fee}}<br/>
<b>Level</b> : {{c.LevelName}}<br/>
<b>Detail </b> : {{c.Detail}}<br/>
<b>Duration </b> : {{c.Duration}}<br/>
<b>Subject </b> : {{c.Subject}}<br/>
<b>IELTS Score </b> : {{c.Score}}<br />
</p>
<p>
<a href="#" ng-click="c.show = !c.show"><img class="info_arw" src="image/bk_up_arw.png" />Hide Information</a>
</p>
</div>