<div class="category">
<div ng-dropdown-multiselect="" options="categories" selected-model="selectedCategories" extra-settings="categoriesSettings" translation-texts="customTexts"></div>
</div>
$scope.$watch('selectedCategories', function(newValue, oldValue){
console.log(newValue);
console.log(oldValue);
$scope.loadPosts();
}, true);
$scope.$watch('selectedCities', function(newValue, oldValue) {
console.log(newValue);
console.log(oldValue);
$scope.loadPosts();
}, true);
Upon the initial page load, these two watch functions are activated. It seems unusual that they would trigger during loading when the array is not being modified.