/*My need is::
Case::
If I type "bx" in the input box:: group 1:: First radio button got selected and "is selected" set to true and others to false and if I remove the filter than it should set to the old data(i.e "Bus Array"). **group 2:same as group 1*/ Please reply asap if you have any solution. Link: https://jsfiddle.net/irashidul99/u888gg5t/1/
- <div ng-app="app" >
- <div ng-controller="ctrl">
- Type(Bx/ Nx / Ax): <input type="text" ng-model="checkPrice">
- <div ng-repeat="buses in BusArray">
- <span>group{{$index+1}}span>
- <form>
- <div ng-repeat="bus in dd=(buses|filter:checkPrice)">
- <label style="font-size:12px; background-color:green; padding:2px;">
- <input name="{{$parent}}" id="{{$parent.$index}}{{$index}}" type="radio" ng-checked="bus.IsSelected" ng-click="setSelected(buses,bus)" />
- {{bus|json}}
- label>
- div>
- form>
- <div>
- div>
- <hr/>
- div>
- {{BusArray | json}}
- div>
Bikesh SrivastavaPosted Jan 30, 2017, 12:44 PM