An open API service indexing awesome lists of open source software.

https://github.com/mgernand/aspnetcore.blazor

Extensions for ASP.NET Core Blazor.
https://github.com/mgernand/aspnetcore.blazor

Last synced: over 1 year ago
JSON representation

Extensions for ASP.NET Core Blazor.

Awesome Lists containing this project

README

          

# AspNetCore.Blazor

A library that provides some extensions for ASP.NET Core Blazor.

## This repository was moved to https://codeberg.org/mgernand/AspNetCore.Blazor

## Usage

### Constructor Injection for Components

To enable contructor injection for Blazor components just add the custom
component activator and the component types to resolve from the service
provider.

```C#
builder.Services.AddComponentActivator();
builder.Services.AddComponent();
```

That's it. The registered components are resolved from the container and
components that are not registered are activated just like the default activator
does.