I need to load dynamically a custom component inside a modal and make it as flexible as possible.
For example :
-HTML CODE-
<button id="floating_button" class="floating_button animation_floating_in" (click)="createNewPost('new_post_form_modal')"><i class="material-icons">gesture</i></button>
<div class="modal-content" id="loadHere" >
<!-- LOAD MY CUSTOM COMPONENT HERE -->
</div>
-TYPE SCRIPT CODE-
public createNewPost(nomeComponent:any)
{
// Load dynamically here nomeComponent inside div with id="loadHere"
}
Can someone help me please?