<select ng-model='select' ng-init="select = types[0].id"
ng-options='type.id as type.name for type in types track by type.id'></select>
<div>{{select}}</div>
$scope.types = [{
id: 1,
name: 'test1'
}, {
id: 2,
name: 'test2'
}, {
id: 3,
name: 'test3'
}, {
id: 4,
name: 'test4'
}, ];
$scope.types = [{
id: 1,
name: 'test1'
}, {
id: 2,
name: 'test2'
}, {
id: 3,
name: 'test3'
}, {
id: 4,
name: 'test4'
}, ];
$scope.select = $scope.types[1];