javascript - Read list back in angular without using ngrepeat -
javascript - Read list back in angular without using ngrepeat -
i have list of divs want able drag , move in list. got part need read list , able tell div order based on id or kind of disingusing name on each div. cant set these divs in background , utilize ngrepeat populate list. have tried putting ul in model <ul ui:sortable ng:model="list">
, model on each div <div class="item" ng:model="list.one">one</div>
, id on div <div class="item" id="one">one</div>
, comes undefined. have work in fiddle http://jsfiddle.net/q3m4loq5/
javascript html angularjs
Comments
Post a Comment