'ng-bootstrap NgbModalOptions are ignored when passing a Component to the open function
when passing a Component parameter to the modalService.open function, the options are ignored. For instance, following example doesn't work:
const modalRef = this.modalService.open(MyModalComponent, { size: 'lg' });
reference to the examples page that shows how it should work:
https://ng-bootstrap.github.io/#/components/modal/examples
Example of the problem at stackblitz:
https://stackblitz.com/edit/angular-gr86pa?file=src/app/modal-component.ts
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
