How can I implement the following function in Angularjs?
var TEST = [];
$('#div').find('select.test').each(function(){TEST.push($(this).val())});
And then with this values I would like update the ng-model value, like this:
$scope.formData.TEST = TEST.join(",");