In AngularJS I was using $compiler to create HTML elements on the fly during runtime but in Angular 2 + I am not able to find an easy way to create it.
Everyone is recommending dynamically create a component but i don't want to create a component dynamically but i would like to add HTML elements dynamically to an existing component, ngmodel and events will be attached to that HTML elements and that should work properly i.e. events should call the respective function in the existing component.
Whether we can achieve that in Angular 2+ or only in React we can do such stuff?