Is it possible to give angular expression inside a JSON file like this:
{ "headerHTML": "<div>{{clippedCoupons}}</div>" }
And bind it to a directive template like this (the below convertAsHtml is a filter for trustAsHtml):
<header data-ng-bind-html="headerHTML|convertAsHtml"> </header>
When I bind the JSON, I'm getting {{clippedCoupons}} expression as such in the page. Is is possible to change it dynamically in our controller?
$interpolate
service