Why rest api html data click attribute not working in angular 2 ? is there any way to do like angular 1?

If you don’t get any better answers, I pretend that innerHTML doesn’t exist, because as you have observed it doesn’t do what people typically expect it to. I use this strategy and enforce a rule in my designs that no HTML passes between backends and mobile apps; only business-domain JSON data.

2 Likes