Getting the ng-object selected with ng-change

<select ng-options="size as size.name for size in sizes" 
ng-model="item" ng-change="update()"></select>

Then in your update() method, $scope.item will be set to the currently selected item.

And whatever code needed item.size.code, can get that property via $scope.item.code.

Previous Post Next Post