I'm taking a HTML content to the front end javascript code, from the database which was saved as varchar. It is stored in a variable called vm.htmlContent
And then I want to display this string type HTML content again as HTML in my web page. I use ng-bind-html
angular directive for doing this. My HTML content which is stored in vm.htmlContent
variable is:
<p> Date: </ p> <p> Time: </ p> <p> Venue: </ p>
The current javascript code for this is looks like:
<ng-bind-html
ng bind-html="vm.htmlContent">
</ng-bind-html>
the output in the web page is:
Date:
Time:
Venue:
I want to add Date,Time and venue from other angular variables inside this ng-bind-html.
The date,time and venue variables are vm.date
,vm.time
and vm.venue
and they keep the relevant data clearly. Is there a way to do this without spiting the string content in vm.htmlContent
variable?