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

Allow injectables in the url function #76

Closed
exequiel09 opened this issue Sep 18, 2024 · 2 comments
Closed

Allow injectables in the url function #76

exequiel09 opened this issue Sep 18, 2024 · 2 comments

Comments

@exequiel09
Copy link

Description

To ensure we're able to be able configure the URL generated, allow inject function to be called in the url function so that one can retrieve configuration values from Angular's DI system

@exequiel09
Copy link
Author

I noticed that removing the / prefix URL in the url makes the injectable class passed in svgLoadStrategy https://github.com/push-based/ngx-fast-svg?tab=readme-ov-file#advanced-usage gets triggered and that allows for inject to be done in the class

@exequiel09
Copy link
Author

Closing as there's a workaround as highlighted above

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

1 participant