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

Provide the Config as an Injection Token #49

Open
pjlamb12 opened this issue Dec 17, 2022 · 1 comment
Open

Provide the Config as an Injection Token #49

pjlamb12 opened this issue Dec 17, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@pjlamb12
Copy link
Owner

This is something that is related to the discussion in #48.

I've figured out a way to provide the config as an Injection token, so you can reference it like this:

constructor(@Inject(APP_CONFIG) private appConfigObject: any) {}
@pjlamb12 pjlamb12 added the enhancement New feature or request label Dec 17, 2022
@pjlamb12 pjlamb12 self-assigned this Dec 17, 2022
@pjlamb12
Copy link
Owner Author

Credit to this blog article that helped me out: https://betterprogramming.pub/how-to-handle-async-providers-in-angular-51884647366

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

No branches or pull requests

1 participant