You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
I am performing a save call in my controller which saves the model and reloads the saved model back. This is done inside the following block.
$timeout(function(){
//if(!$scope.$$phase){
$scope.$apply(function(){
//update the model
//update code
})
//};
}, 50);
all my text fields gets loaded with the updated data and when I printout {{mymodel}}, I can see the updated model.
I performed save and update call inside $scope.$apply with the intention of updating the dom elements.
after the update when I expand the dropdown (select2), I can see the correctly updated value selected inside the select options.