ngx-lightbox
ngx-lightbox copied to clipboard
Over-riding Lightbox options in one component, over-rides them in all components.
I have one component where I am over-riding the lightbox, but it seems to add the same options where I am not over-riding the components. What if I want different options on different components?
constructor(private adminService: AdminService,
private generalService: GeneralService,
private _lightbox: Lightbox,
private _lightboxConfig: LightboxConfig) {
_lightboxConfig.disableScrolling=true;
_lightboxConfig.fitImageInViewPort=true;
_lightboxConfig.centerVertically=true;
_lightboxConfig.showImageNumberLabel=true;
}