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
Actually this has been discussed in more links.
Don't use primitive type variable. Instead of that use object in scope.
For example,
Don't use like $scope.primitiveVariale
instead of this $scope.object={primitiveVariale:null}
So in view use like object.primitiveVariale
then this will be reflect in all the view. Please see the following links.
https://github.com/angular/angular.js/wiki/Understanding-Scopes