I have been bangin my head on the wall for 2 days now, just to attach a click event to a dynamically created button. (click), ng-click, on-click directives won't work on dynamic doms, as these directives need to be compiled.
I have this requirement to create dynamic html elements (button is one), but somehow i am stuck on how to attach the event. Calling the ts method on onClick will not work either.
I have looked here and there, but to no avail. If someone could shed a light, it is much appreciated.
I am looking into switching to other framework as i find angular lacking event binding to dynamic doms. I'm already tired and exhausted looking for anything that will do, but none.
Please help.