Я хотел бы, чтобы выбранный параметр был установлен в поле динамического выбора.
В поле выбора не отображается любое выбранное значение
$http({
method: 'GET',
url: $rootScope.API_URL + 'branchesShow/' + $routeParams.id,
}).then(function successCallback(response) {
$scope.city_id = response.data.data.city_id;
}, function errorCallback(response) {
// console.log(response);
});
$http({
method: 'GET',
url: $rootScope.API_URL + 'citySelectList',
}).then(function successCallback(response) {
$scope.cities = response.data.data;
console.log($scope.cities);
}, function errorCallback(response) {
console.log(response);
});
<select class = "form-control" ng-model="city_id" ng-options="c.id as c.title for c in cities">
</select>