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

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -