ngx-bootstrap: Modal opens up as small instead of large
If you want to pass data to modal component while opening modal,
openModal() {
const initialState = {
data:"Test data"
}
this.bsModalRef = this.modalService.show(modalComponent, {initialState, class: 'modal-lg'});
}
Try like this :
openModal() {
this.bsModalRef = this.modalService.show(modalComponent, { class: 'modal-lg' });
}