angular-confirm
Version:
Angular Confirm Modal
13 lines (9 loc) • 394 B
text/typescript
import {Injectable, TemplateRef} from '@angular/core';
import {NgbModal, NgbModalOptions, NgbModalRef} from '@ng-bootstrap/ng-bootstrap';
()
export class ConfirmService {
constructor(private modalService: NgbModal) {}
confirm(template: string | TemplateRef<any>, options ?: NgbModalOptions): NgbModalRef {
return this.modalService.open(template, options);
}
}