DriDrood.BlazorObservable 1.0.0

dotnet add package DriDrood.BlazorObservable --version 1.0.0
                    
NuGet\Install-Package DriDrood.BlazorObservable -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DriDrood.BlazorObservable" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DriDrood.BlazorObservable" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="DriDrood.BlazorObservable" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DriDrood.BlazorObservable --version 1.0.0
                    
#r "nuget: DriDrood.BlazorObservable, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DriDrood.BlazorObservable@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DriDrood.BlazorObservable&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=DriDrood.BlazorObservable&version=1.0.0
                    
Install as a Cake Tool

BlazorObservable

Library for two-way binding dependency injection objects in Blazor.

Installation

To install thin nuGet package, open console in folder with your project and run:

dotnet add package DriDrood.BlazorObservable

Using

You need to update your component for writing data and components for reading data.

Components for reading data

All components, that inject your DI object, need to run this method in OnInitialized or OnInitializedAsync method. You can easily inherit DriDrood.BlazorObservable.Components.ComponentObserveBase component to do it for you automatically.

this.RegisterObservable(StateHasChanged);

Components for writing data

Writing data is mostly done by inputs. Instead of build-in input components (namespace Microsoft.AspNetCore.Components.Forms) you need to use ours (namespace DriDrood.BlazorObservable.Components).

  • InputCheckboxInputCheckboxObservable
  • InputDateInputDateObservable
  • InputNumberInputNumberObservable
  • InputRadioGroupInputRadioGroupObservable
  • InputSelectInputSelectObservable
  • InputTextAreaInputTextAreaObservable
  • InputTextInputTextObservable

You can use same approach as build-in inputs. Only difference is that these inputs re-render components for reading data on change.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DriDrood.BlazorObservable:

Package Downloads
DriDrood.BlazorObservable.Forms

Library for two-way binding dependency injection objects in Blazor - Forms extensions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 106 5/17/2025