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

feat: added provider function, converted to standalone and used inject function #991

Merged
merged 5 commits into from
May 4, 2023

Conversation

eneajaho
Copy link
Contributor

Hello,
I love this library and use it a lot, lately I've been using it in standalone apps, and always wrapped the ToastModule.forRoot in a custom provider function.

I created this PR to easily use a provider function from the library itself, and also re-use it in the module providers, in order for this change to be backwards compatible.
Also converted the components to standalone and also re-exported them from the modules for backwards compatibility.

Fixes: #986, and I may also add readme changes for #968.

@scttcper scttcper merged commit 94dba28 into scttcper:master May 4, 2023
@scttcper
Copy link
Owner

scttcper commented May 4, 2023

🎉 This PR is included in version 16.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Dixyx pushed a commit to Dixyx/ngx-toastr that referenced this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add provideToastr method for standalone app
3 participants