I would like to share my modal configuration with you. I thought to myself that you can integrate it automatically.
Because being new to Angular, I spent hours and how to change the size of my modal.
In my modale.componant.ts file
open(options?: NgbModalOptions): Promise<boolean> {
return new Promise<boolean>((resolve) => {
this.modalRef = this.modalService.open(this.modalContent, options);
this.modalRef.result.then(resolve, resolve);
});
}
Next In my dashbord.componant.ts file
async openModal() {
return await this.modalComponent.open({
modalDialogClass: 'dark-modal mw-650px',
fullscreen: 'lg',
size: 'lg',
});
}
sorry for my English
Hi,
May I know which Metronic version and demo are you using?
Regards.