angularjs - Need help in ng-repeat -


my code

i want repeat slides in sliderone have added filter below.

<div ng-repeat="slider in sliderdata " >     <div ng-repeat="slide in slider | filter : sliderdata" >1</div> </div> 

i not getting going wrong. slides getting repeated.

try this

<div ng-repeat="slider in sliderdata[selectedslider]" >   {{slider}} </div> 

see plunker: http://plnkr.co/edit/v6upuvdhoutqcwdctljj?p=preview


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -