import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; ... export class MyComponent { constructor(private modalService: NgbModal) {} openModal(content) { this.modalService.open(content); } }
In this example, NgbModal is included as part of the @ng-bootstrap/ng-bootstrap package library.Modal Title
Modal Content