Hi,
I am really stuck here.
I am having a complex view where I am having one controller and I get data from service and store model to $scope.
Its a hierarchical object somthing like
MainObject
-prop1
-prop2
-propary
--proparyprop1
--proparyprop2...
on one view ,I use ng-repeat for propary inside which I have a text box and one dropdown whose option will be populated dynamically based on user input. So on propary , i added one array property and bound it in select using ng-options. Now based on user input on a particular row ,I update propary but select option dont get updated.To make sure ,If I am doing everything right , I put a li with ng-repeat at the same place and it gets updated perfectly . To further check, I put a filter on ng-options and I can see that Array values are updates but options are as it is.
I used $apply and everything but no success. Worst part is any other repeater except ng-options will work perfectly fine
I am really stuck and any help will be highly appreciated
Sample Code--
<tr ng-repeat="DetailUpperObject in MainObject.DetailsUpperData " >
<td>
<input type="text" ng-model="DetailUpperObject.ScreeningPropertyID" ng-model-onblur ng-change="updatedropdown($index)" /> Note: here I am calling a function
</td>
<td>
<label>{{DetailUpperObject.ScreeningValue}}</label>
</td>
<td>
<input type="text" ng-model="DetailUpperObject.cls" />
</td>
<td>
<select name="ssss" ng-model="DetailUpperObject.comp1" ng-options="i.firstName for i in DetailUpperObject.CompOptions" > Note:CompOptions populated but not refreshed
</select>
<input type="text" ng-model="DetailUpperObject.comp1.firstName" />
</td>
<td>
<input type="text" ng-model="DetailUpperObject.fam" />
</td>
<td>
<input type="text" ng-model="DetailUpperObject.Lot" />
</td>
<td>
<input type="text" ng-model="DetailUpperObject.Loc" />
</td>
<td>
<input type="text" ng-model="DetailUpperObject.Qty" />
</td>
<td>
<input type="text" ng-model="DetailUpperObject.Price" />
</td>
<td><input type="button" value="delete" ng-hide="MainObject.DetailsUpperData.indexOf(DetailUpperObject)==MainObject.DetailsUpperData.length-1" ng:click="MainObject.DetailsUpperData.splice(MainObject.DetailsUpperData.indexOf(DetailUpperObject), 1)" /></td>
</tr>
</table>