Cannot find name ‘modalRef’

The solution for “Cannot find name ‘modalRef'” can be found here. The following code will assist you in solving the problem.

import { NgbActiveModal, NgbModal, NgbModalRef } from ‘@ng-bootstrap/ng-bootstrap’;

constructor(private modalService: NgbModal)
const modalRef = this.modalService.open(NgbdModal);

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in