I have a modal component with this template:
<div class="header"></div>
<div class="body">
<ng-content></ng-content>
</div>
<div class="footer">
<button>Submit</button>
<button>Cancel</button>
</div>
In the ng content I pass with a service a template like this:
<form #contactForm="ngForm" (ngSubmit)="onSubmit()">
/*some inputs */
<button type="submit">Submit</button>
</form>
I need to do a submit in my modal component on click on the button positioned on the footer section....I don't need the button inside the form (Must I hide it?) but I can't find a solution...How can I solve this situation?