Can't inject 'SweetAlertService' on Razor Component
HPnavalhas opened this issue · comments
This could be clarified in the README. You need a using directive for the file, just like any C# code referencing a library.
So above you @inject
line add this
@using CurrieTechnologies.Razor.SweetAlert2
You can also add it to you _Imports.razor file to import it globally and not need it in your individual files.