JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-controller="myCtrl">
<select id="categoryListBox"
ng-model="categorymodel"
ng-change="updateCategory(categorymodel)"
ng-options="category.id as category.name for category in categories">
</select>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function myCtrl($scope) {
$scope.categories=[
{name: "Javascript", id: 1 },
{ name: "JQuery", id: 2 },
{ name: "AngularJs", id: 3 },
{ name: "Other", id: 4 }];
$scope.updateCategory = function(categorymodel){
alert(categorymodel);
}
}