Angularjs - $scope Does Not Apply The First Time I Call My Async Method
I have a problem with my angularjs controller. It goes like this I am triggering an async method on button click, this method shows a dialog with an input text, once you close the
Solution 1:
Put the code inside $timeout which opens the dialog. It should resolve the issue.
Example:
$scope.upload = function() {
...
$timeout(function() {
// put code here which opens dialog
}, 200);
}
Post a Comment for "Angularjs - $scope Does Not Apply The First Time I Call My Async Method"