Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatible with angular 17 version #163

Open
likhita-naik opened this issue Dec 4, 2024 · 2 comments
Open

incompatible with angular 17 version #163

likhita-naik opened this issue Dec 4, 2024 · 2 comments

Comments

@likhita-naik
Copy link

incompatible with angular 17 version

@h5aaimtron
Copy link
Contributor

h5aaimtron commented Dec 11, 2024

You can get it to work with Angular 17. In the component you want to use it, import the LightboxModule and then add it to the
@components ({
...
imports: [LightboxModule],
...
});

Also bring in Lightbox and LightboxConfig in your constructor as you would normally and use it as you would have in the past.

Finally, make sure to link the css in the angular.json file under styles.
"node_modules/ngx-lightbox/lightbox.css",

That "should" work for getting it to run. This at least worked for me just now as I was working through this issue.

@pierresh
Copy link

You can use my fork available here:

https://github.com/pierresh/ngx-lightbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants