I want display modal in Angular 2 with large content (set [size] = lg).
It's very simple. Follow these steps:
Import NgbModalOptions:
import { NgbModal, NgbActiveModal, NgbModalOptions } from '@ng-bootstrap/ng-bootstrap';
Create NgbModalOptions object and set size property:
let options: NgbModalOptions = {
size: 'lg'
};
Open your modal dialog:
this._modalService.open(YourModalDialogComponent,options);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With