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.
- Host: GitHub
- URL: https://github.com/mgernand/aspnetcore.blazor
- Owner: mgernand
- License: mit
- Archived: true
- Created: 2022-05-11T19:22:02.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-17T09:03:41.000Z (over 1 year ago)
- Last Synced: 2025-04-23T12:06:02.926Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 262 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.