0

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?

3

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.