Dear All,
I need to bind an array into select control and save the selected option to
another variable . Please check this plunker code for whole problem and code
$scope.actions = [{ name: "alert", id: 1 }, { name: "drop", id: 2 }];
$scope.raction = $scope.actions[0]; // Keeping first element to
model
//Mark-ups///
<select class="form-control"
ng-model="raction" ng-options="action.name for action in
actions" ></select>
http://plnkr.co/edit/NTnxAuxwxJrIIeS4sWlM?p=preview
--
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.