Не знаю, лучший ли это способ, но я нашел "решение":
Компонент лямбда:
<button mwlConfirmationPopover
[popoverTitle]="popoverTitle"
[popoverMessage]="popoverMessage"
placement="left"
[customTemplate]="requestor"
(confirm)="delEquip(e._id)"
(cancel)="cancelClicked = true" class="btn btn-danger btn-sm"><span class="fa fa-trash" style="margin-right:5px;"></span> Delete</button>
<ng-template #requestor let-options="options"><app-box [options]="options"></app-box></ng-template>
и шаблон:
import {Component, Input} from '@angular/core';
@Component({
selector: 'app-box',
templateUrl: './box.component.html',
styleUrls: ['./box.component.css']
})
export class BoxComponent {
@Input() options: object;
constructor() {}
}
<div style="display: block">
<div class="fond">
<div class="boxAdd">
<div class="card card-info" style="margin: 0 !important;">
<div class="card-header">
<h3 class="card-title"><i class="fas fa-edit"></i> {{options.popoverTitle}}:</h3></div>
<div class="card-body">
{{options.popoverMessage}}
</div>
<div class="card-footer">
<button type="submit" class="btn btn-primary" (click)="options.onConfirm({clickEvent: $event})">Confirm</button>
<button id="cancel" type="button" (click)="options.onCancel({clickEvent: $event})" class="btn btn-danger float-right">Cancel</button>
</div>
</div>
</div>
</div>
</div>