In my angular, I define a scope variable $scope.letter_content
. When the view is loaded, I load string from my database and set it to $scope.letter_conten
I had very similar but even weirder problem where I was updating one of my scope
variables using the response from an HTTP call, surprisingly, my view will not update unless I make another HTTP call and by another I mean any other random HTTP call.
Using the $apply
worked for me,
$scope.$apply(function () {
$scope.resultData.totalResults = response.data.total;
});