angularjs - Can't get ng-show to work with ng-repeat -
i'm trying ng-show working reason, won't. have tried following methods:
<div ng-show="s_quest.title > 0">similar questions</div> <div ng-show="s_quest.title">similar questions</div> <div ng-show="!s_quest.title">similar questions</div> <div ng-show="s_quests">similar questions</div>
this code below shows when similar questions called.
<span ng-repeat="s_quest in s_quests track $index"> <span class="fullpadding"> <a href="{{ques_cat_enum[quest.quest_cat]+'/'+s_quest.slug}}"> <span>{{s_quest.title}}</span> </a> </span> <br /> </span>
where tink i'm going wrong?
i ended using code worked:
<div ng-show="s_quests > 0">similar questions</div>
thank you, time :)
Comments
Post a Comment