I made a simple interface to display application logs using elasticui, I'd like to highlight the results to show what was matching
I tried to add this in my controller:
$scope.$watch('ejs', function(ejs) {
    if (ejs !== undefined) {
        ejs.Highlight(['msg']);
    };
});
but it does not work (the request payload don't include the highlight part)
how should I proceed?