Angular – Replace the Embedded tag with dynamic value

  angular, angularjs, directive, interpolation, string

I have a need where dynamic value needs to be replace with the static sentence coming from the backend with Embeede tags in line.

e.x. The Text is the below with "current date" which needs to be replace from API response with Value as mentioned in the Value Object.

Application Open date is ##CurrentDate##

value:"10th September 2021"

Any Suggestion, how this can be achieved in Angular?

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.