I have a pop-up with multi-select drop down.
Multi-Select Dropdown Code
<select name="edit_tags" class="form-control" id="advisor_article_tagsx" multiple=""
required ng-model="article_selected" ng-options="article_service as article_service.name for article_service in article_services">
</select>
There is an array article_services which is used in multi-select, I am fetching this array from below code.
$http.get(url + 'service_provided').
then(function (response) {
$scope.article_services = response.data.service_provided;
//$scope.article_selected = [$scope.article_services[0], $scope.article_services[1]];
});
Now I want that when I click on Edit Button with ng-click="advisor_article_edit()" to open pop-up, my multi-select checkbox comes with some selection.
I want that Select must be work in below function but unfortunately it doesn't work.
$scope.advisor_article_edit = function () {
// I need selection work from here. But it doesn't.
$scope.article_selected = [$scope.article_services[3]];
}