I have an HTML <select> tag:
Document type <select class="form-control" name="document_type" ng-model="document_type"
ng-options="opt as opt.label for opt in options" required>
I have saved an options variable in the scope of my model:
$scope.options = [{
label : '',
value : ''
}, {
label : "ID card",
value : "ID card"
}, {
label : 'Passport',
value : 'Passport'
}, {
label : 'Driving license',
value : 'Driving license'
} ];
In this way I have the following field:
My target is to set the document_type 'variable' using the $scope:
$scope.document_type = "Passport"
but it does not work and the <select> field stays blank.
