I may be confusing binding with dynamic HTML or something else but am trying to the following without success. My view model returns some HTML (effectively a template to display the data) which include a number of values which are to be displayed. There is no problem binding to HTML but cannot interpolate the values within the HTML.
So , for example, " Total Cost: {totalCost} </html>" is bound to the string variable dynamicHtml (in the associated TypeScript file) for want of a better name. What I'm trying to do, which may be the wrong way to go about it, is to display the value of Total Cost from the view model (the variable TotalCost is determined in the associated TypeScript file). However, all that happens is the string "<html>Total Cost: {total Cost} " is displayed. I wish to see something like âTotal Cost: ÂŁ100.00â where 100.00 is the real value in the view model. Iâve seen some examples of dynamic html but cannot get any of them work. Can someone point me in the right direction? Surely this is possible?
Apologies, the editor is stopping me enter the string below