I am using ngx-simple-modal
plugin in angular7
app and i want to close modal when user click outside of modal component? I tried this
this.SimpleModalService.addModal(LinkPopupComponent, {title: 'Alert title!', message: 'Alert message!!!'},{ closeOnClickOutside: true });
i used this { closeOnClickOutside: true }
option to close modal when user will outside of modal component as described in documentation. But still modal is not closing after clicking outside of it. How can i do that?
from How to hid ngx-simple-modal by clicking outside of modal component in angular7?
No comments:
Post a Comment