<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);
These two watches have been triggered when the page is initially loaded. Isn't it supposed not to trigger when the page is loading and the array not being changed?