What is the purpose of innerHTML?
The innerHtml is a property of HTML-Elements, which allows you to set it's html-content programmatically. Let's display the below html code snippet in a <div>
tag as below using innerHTML binding,
<div [innerHTML]="htmlSnippet"></div>
and define the htmlSnippet property from any component
export class myComponent {htmlSnippet: string = '<b>Hello World</b>, Angular';}
Unfortunately this property could cause Cross Site Scripting (XSS) security bugs when improperly handled.
August 22, 2022
175
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular