Hi,
The property binding [innerHTML] takes only the text in between the raw html tags and the anchor tag functionality is not getting applied for data binding. So i want the anchor tag functionality should work. Means the anchor tag is getting removed when i bind this in template. My target is to achieve both innerHTML and as well as the anchor tag functionality. When i click on the any notification list item it will take me to another page. Because the JSON gives me that data only. Can anybody help me?
<a data-link="admin-invoice-list" href="javascript:;" [innerHTML]= item.message"></a>
The JSON data comes in this format:
{
"id": "225",
"message": "<a data-link="/user/121/compliance_details" href="javascript:;">Company has uploaded a compliance document on the Supplier Hub</a>",
"status": "0"
}
How can we achieve this in angular 4?