Creating the Local Storage Service
Learn how to create our project in Blazor WebAssembly using the Blazor WebAssembly project template.
We'll cover the following
The LocalStorage
project will be created by using the Empty Blazor WebAssembly App project template. First, we will add a JavaScript file with the JavaScript functions that our service will need to use to update the browser's localStorage. Next, we will create the interface and class with the .NET methods that will invoke the JavaScript functions. Finally, we will test our service.
Creating the local storage service project
Get hands-on with 1400+ tech skills courses.