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
-
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