Revise your HTML to
<body ng-controller="ctrl">
<select name="" id=""
ng-options="option for option in businessChoices"
ng-model="business_entity">
</select>
</body>
Your options will be dynamically generated and linked to business_entity
automatically.
Update the Controller as follows:
function ctrl($scope) {
$scope.businessChoices = [
'Public Limited Company',
'Private Limited Company',
'State Organization',
'Bank',
'School',
'Individual',
'Other'
];
$scope.business_entity = $scope.businessChoices[4];
}
This code establishes the default value by selecting it from the array businessChoices
. Ensure you choose the default value from the existing options rather than assigning it directly.
For reference, check out the updated Plunker link