I have to enter some html via typescript using the [innerHTML] tag on the template.
I am trying to put a click function on the html:
status = "<img src='assets/hello.png' (click)='hello()' />";
But the click function gets stripped away with the console saying:
WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).
I see a few people have mentioned using "DomSanitizer" but can't find an example which fixes my exact problem.