Controller
$scope.industries= [
{
id: 1,
name: "Name1",
}, {
id: 2,
name: "Name2"
}
];
When assign
$scope.filling_type = 2in controller,I want to select "Name2" option in the select.
View
<select ng-model="filling_type">
<option ng-repeat="industry in industries"
ng-value="industry.name">{{industry.name}}</option>
</select>
In this case no option selected.
{{Industry.name}}?