Creating the Local Storage Service

Learn how to create our project in Blazor WebAssembly using the Blazor WebAssembly project template.

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 1200+ tech skills courses.