I want to add a pre-processing step to AngularJS before it updates any HTML. For the sake of simplicity, let's have it bold all instances of hello.
That is, if we let $scope.text = "hello world!", we want somehow to have
{{ text }}
evaluate during the $digest cycle into
<b>hello</b> world!
If $scope.text is changed, this would of course update as appropriate.
How would this be done? Preferably, it would be a directive, so that any expressions inside a <div boldhello></div> would be processed.