Replies: 1 comment
-
@jbendler It shows you how to do this in the readme. builder.Services.AddBlazoredToast(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Specifically, how do you set up the service on the client side of a webassembly blazor app?
I only have a Program.cs on the client side. I am using .NET 6.
Update: I did it like this in my client's Program.cs:
builder.Services.AddSingleton(typeof(IToastService), new ToastService());
Thanks
Beta Was this translation helpful? Give feedback.
All reactions