title: How to attach event to dynamically added HTML element?
body: <p>I have a scenario where I am getting an HTML tring from the backend and I am rendering that string on HTML with <code>[innerHTML]</code>. I have string link this:</p>
  
  <p><code>Please click on &lt;a (click)='openMyFunction()' open dialog &lt;/a&gt;</code></p>
  
  <p>I am able to get the string rendered with the help of Angular sanitize pipe, but the <code>click</code> handler is not working. I know as its added dynamically the <code>click</code> event is not getting triggered.</p>
  
  <p>Can anyone provide me a small example where I can make this <code>click</code> even working? </p>