javascript - ng-if inside ng-repeat not working as expected -


i have repeater i'm using return views accordion. i'd conditionally load views, i'm wanting add ng-if condition on repeaters elements check , see if current == true it's not working. i'm using angular 1.0.8.

i have fiddle

<div data-ng-view></div> showing same view 

edit:

angular 1.0.8 not support ng-if went switch statement.

       <div ng-switch="group.current">             <div ng-switch-when="true">                 <div data-ng-view></div>             </div>         </div> 

problem at

<div ng-if="group.current == 'true'"><div data-ng-view></div></div> 

replaced with

<div ng-if="group.current === true"><div data-ng-view></div></div> 

check updated @ http://jsfiddle.net/rajumjib/guwsh/15/


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -