My lightbox module that I inserted in the Angular does not work, how to do it?

0

Well I've installed this Lightbox module with the command npm install lightbox2 --save as per the site: lightbox until then. p>

After I put the paths in the file angular-cli.json according to examples that I searched the net and looked like this:

"styles": [
    "../node_modules/lightbox2/dist/css/lightbox.css",
    "styles.css"
  ],
  "scripts": [
    "../node_modules/lightbox2/dist/js/lightbox.js"
  ],

After I mounted my HTML as indicated on lightbox :

<a href="../../assets/img/teste.jpg" data-lightbox="teste.jpg" class="imagem" style="background-image: url('../../assets/img/1.jpg')">
    <img src="../../assets/img/teste.jpg" style="display: none">
</a>

Well, then I tried to see on the page the desired effect (as per lightbox ) did not work, now I do not I know if anything is missing or something is wrong with what I did?

    
asked by anonymous 13.04.2018 / 14:14

0 answers