Topic: Using MDB Lightbox with Angular2
$("#mdb-lightbox-ui").load("./../../assets/module/mdb-addons/mdb-lightbox-ui.html");
First I added this code snippet to the body of the index.html inside a javascript script-tag.
Second I added it to the ngOnInit part of the component.
Unfortunately it was no successful to init the mdb lightbox. I received no error in the console or something else. The pictures are displayed correctly, but when I click on the thumbnail to move to the lightbox-view, the picture is displayed like a normal picture in the browser. (No navigation, no mask,..)
Can anyone help me to resolve this?
Best Regards
Adrian Sawicki
answered 4 years ago
Smustyle
pro answered 4 years ago
Adrian Sawicki
answered 4 years ago
Piotr Bender
answered 4 years ago
Sebopede pro premium commented 11 months ago
This is a follow up comment from Smustyle, the lightbox works but without any zoom transitions or swipe compatability.
- User: Pro
- Premium support: No
- Technology: Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No