I am currently exploring the possibility of altering the font color of the initial instance of a letter in a div. For example, if the String were 'The text' and I desired to make the color of 'e' yellow, then only the first e would be impacted. 'The text'. This is what I have managed to accomplish so far:
<div class="translation-esan-div">
{{$scope.someValue}}
</div>
Upon accessing this element using:
angular.element(document.getElementsByClassName("translation-esan-div"))
the text() value that gets returned is {{$scope.someValue}} rather than the angular evaluated text.
The content within $scope.someValue could vary. A predefined css class specifying the color would already be in place. The specific letter that needs to change would be included in the associated controller. How can I simply modify the color of a particular letter?