Is there any option for default configurations. For example, igronebackdropclick always false, but i want to set it just one time to true. Otherway i must configurate all the modal show actions one by one.
I import the ModalModule in the SharedModule, and export it too.
In the constructor I configured the modal. Not as beautiful as using Injection token, but it works.
export class SharedModule {
constructor(private modalService: BsModalService) {
this.modalService.config.class = 'modal-lg';
this.modalService.config.ignoreBackdropClick = true;
}
}
your code is great,I done that inside AppComponent:
export class AppComponent {
constructor(private modalService: BsModalService) {
this.modalService.config.ignoreBackdropClick = true;
....
}
Most helpful comment
I import the ModalModule in the SharedModule, and export it too.
In the constructor I configured the modal. Not as beautiful as using Injection token, but it works.