Hi all,
Consider this sample object:
$scope.dropDownDemo=[{name:"sam",age:21,segment:[{segNAme:"sa"},{segName:"si"}]},{name:"james",age:21,segment:[{segNAme:"ja"},{segName:"js"}]}]
I have 2 drop downs
1.In first Drop down look like - >
<select ng-model="drop1" ng-options="menu.name for menu in dropDownDemo"
ng-change="assignSubDropValues(drop1)">
if i select any one of values in first drop down based on that 2nd drop
down values should change
ie : selected object segment should be the options for 2nd drop down
so im trying in this way,
inside this method: $scope.assignSubDropValues=function(value){
$scope.segValue=value.segment; // assigning the selected values to scope
}
2.In 2nd drop down
<select ng-model="drop2" ng-options="seg.segName in segValue">
but i'm not able to get the selected values segments in 2nd drop down. if
i'm printing {{segValue}} im getting the selected value's. i don't know why
i'm not getting those values.
I think this is binding issue. Some one help me to solve this issue.
Thanks & Regards,
Sasikumar.V
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.