var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.form = {
selectedStage: null,
stage: [{
optional: 1,
id: 23,
description: 'UD Visual Inspection - optional'
}, {
optional: 0,
id: 12,
description: 'Flash'
}]
}
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.2.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.min.js" data-semver="1.2.19"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<select name='test_stage'
ng-model='form.selectedStage'
ng-change='abc(form)'
ng-options='item as item.description for item in form.stage'>
</select>
<div>{{form.selectedStage}}</div>
</body>
</html>
/* Put your css in here */