I have predefined scope values:
$scope.synchronizationStates =
[
true,
false
];
And i have defined select:
<select class="form-control" data-ng-model="projectDetail.synced" data-ng-options="synced for synchronizationState in projectDetail.synchronized">
</select>
I would like to have for state false display preselected value "NOT_SYNCED" and for true "SYNCED" And also change state value if value is changed by user.
How can I do it please using AngularJs?
Thanks for any advice.