Consider this my json string,
[{
\"Mat_id\": \"2\",
\"Mat_Name\": \"Steel\",
\"Measurement\": \"mm\",
\"Description\": \"Steel\"
}]
This answer is for >Angular 2 compilation regarding parsing json containing html tags.
Below is the json containing html tags
{
"data":"highlighting this in bold"
}
As you can see this is the keyword need to be bold in html while rendering.
If I use angular interpolation like below it will be parsed as normal string and tag will be printed as it is.
{{titleDetails.what}}
output : highlighting this in bold.
But if you use property binding like below it will render the expected output.
Output: highlighting this in bold