So currently I have component which have multiple buttons configurable with options:
test.component.html
<button
*ngIf="cleaning"
(click)="onCleaning()"
>
{{'btn.cleaning'|translate}}
</button>
<button
*ngIf="remove"
(click)="onRemoving()"
>
{{'btn.remove'|translate}}
</button>
test.component.ts
@Input() cleaning: boolean;
@Input() remove: boolean;
cleaningForm: FormGroup;
parent.component.html
<test [cleaning]="true" [remove]="false"></test>
And idea is that this component is much bigger and reusable where only buttons and action which would be pushed changes, but it always require form.
Is there other better solution to get such component, using ng-content and triggering form in parent component somehow?