I am working on an angularjs project and i have a problem with the ngModel not binding within the select.But the same concept is working in another select tag a
ngModel
Based on Tony the Pony's fiddle :
{{opt}}
With a controller:
function MyCtrl($scope) { $scope.fonts = [ {title: "Arial" , text: 'Url for Arial' }, {title: "Helvetica" , text: 'Url for Helvetica' } ]; $scope.change= function(option){ alert(option.title); } }
http://jsfiddle.net/basarat/3y5Pw/43/