All Projects → chrissainty → BlazoredLocalStorage

chrissainty / BlazoredLocalStorage

Licence: MIT license
This library has been moved to the Blazored org

Programming Languages

C#
18002 projects
typescript
32286 projects

Projects that are alternatives of or similar to BlazoredLocalStorage

smart-blazor
Blazor UI Components & Examples
Stars: ✭ 32 (+23.08%)
Mutual labels:  aspnetcore, asp-net-core, blazor
XAF Security E4908
This repository contains examples for Role-based Access Control, Permission Management, and OData / Web / REST API Services for Entity Framework and XPO ORM
Stars: ✭ 47 (+80.77%)
Mutual labels:  aspnetcore, asp-net-core, blazor
TheLastTime
C# .NET 5 Blazor WebAssembly Progressive Web Application that tracks when was the last time you did something
Stars: ✭ 23 (-11.54%)
Mutual labels:  aspnetcore, asp-net-core, blazor
BlazorServerWithDocker
Companion code sample for my blog post - Containerising a Blazor Server App
Stars: ✭ 16 (-38.46%)
Mutual labels:  aspnetcore, asp-net-core, blazor
Home
Home for Blazor Extensions
Stars: ✭ 51 (+96.15%)
Mutual labels:  aspnetcore, asp-net-core, blazor
blazor-tailwindcss-template
This template demostrates the integration of tailwindcss with blazor and covers important features like hot-reload and css isolation
Stars: ✭ 38 (+46.15%)
Mutual labels:  aspnetcore, asp-net-core, blazor
BlazorWasmWithDocker
Companion code sample for my blog post - Containerising a Blazor WebAssembly App
Stars: ✭ 16 (-38.46%)
Mutual labels:  aspnetcore, asp-net-core, blazor
Awesome Blazor
Resources for Blazor, a .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly.
Stars: ✭ 6,063 (+23219.23%)
Mutual labels:  aspnetcore, asp-net-core, blazor
Firewall
ASP.NET Core middleware for IP address filtering.
Stars: ✭ 159 (+511.54%)
Mutual labels:  aspnetcore, asp-net-core
Netcorecms
NetCoreCMS is a modular theme supported Content Management System developed using ASP.Net Core 2.0 MVC. Which is also usable as web application framework. This project is still under development. Please do not use before it's first release.
Stars: ✭ 165 (+534.62%)
Mutual labels:  aspnetcore, asp-net-core
Aspnetcorelocalization
Localization.SqlLocalizer & ASP.NET Core MVC Localization Examples
Stars: ✭ 183 (+603.85%)
Mutual labels:  aspnetcore, asp-net-core
Formhelper
ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)
Stars: ✭ 155 (+496.15%)
Mutual labels:  aspnetcore, asp-net-core
Elmahcore
ELMAH for Net.Standard and Net.Core
Stars: ✭ 127 (+388.46%)
Mutual labels:  aspnetcore, asp-net-core
Aspnetcore.identity.mongo
This is a MongoDB provider for the ASP.NET Core 2 Identity framework
Stars: ✭ 179 (+588.46%)
Mutual labels:  aspnetcore, asp-net-core
Recaptcha.aspnetcore
Google reCAPTCHA v2/v3 for .NET Core 3.x
Stars: ✭ 122 (+369.23%)
Mutual labels:  aspnetcore, asp-net-core
Aspnetcore.identity.mongodbcore
A MongoDb UserStore and RoleStore adapter for Microsoft.AspNetCore.Identity 2.2. Allows you to use MongoDb instead of SQL server with Microsoft.AspNetCore.Identity 2.2. (not Identity 3.0)
Stars: ✭ 118 (+353.85%)
Mutual labels:  aspnetcore, asp-net-core
Aspnetcoremultipleproject
ASP.NET Core API EF Core and Swagger
Stars: ✭ 189 (+626.92%)
Mutual labels:  aspnetcore, asp-net-core
Onion Architecture Asp.net Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 5!
Stars: ✭ 196 (+653.85%)
Mutual labels:  aspnetcore, asp-net-core
SeoTags
SeoTags create all SEO tags you need such as meta, link, twitter card (twitter:), open graph (og:), and JSON-LD schema (structred data).
Stars: ✭ 113 (+334.62%)
Mutual labels:  aspnetcore, asp-net-core
Hexagonal-architecture-ASP.NET-Core
App generator API solution template which is built on Hexagnonal Architecture with all essential feature using .NET Core
Stars: ✭ 57 (+119.23%)
Mutual labels:  aspnetcore, asp-net-core

BlazoredLocalStorage

A library to provide access to local storage in Blazor applications

NuGet

Build Status

Installing

You can install from Nuget using the following command:

Install-Package BlazoredLocalStorage

Or via the Visual Studio package manger.

Setup

First, you will need to register local storage with the service collection in your startup.cs file

public void ConfigureServices(IServiceCollection services)
{
    services.AddLocalStorage();
}

Usage

This is an example of using local storage in a .cshtml file

@inject Blazored.Storage.ILocalStorage localStorage

@functions {

    protected override async Task OnInitAsync()
    {
        await localStorage.SetItem("name", "John Smith");
        var name = await localStorage.GetItem<string>("name");
    }

}

The APIs available are

  • SetItem()
  • GetItem()
  • RemoveItem()
  • Clear()
  • Length()
  • Key()

All APIs are now async

Note: Blazored.LocalStorage methods will handle the serialisation and de-serialisation of the data for you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].