You can use $scope.$watch
, and you could do something like this
$scope.$watch('clientList', function (oldValue, newValue) {
$scope.gallery.client = newValue; //newValue is the client.id
});
Btw, you should rename clientList
to something else, since what you select is only one item.