Recommend reading main DI topic (#26430)

pull/26431/head
Luke Latham 2022-07-14 11:34:27 -05:00 committed by GitHub
parent 13b157a744
commit caa13114b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,9 @@ This article explains how Blazor apps can inject services into components.
* Framework-registered services can be injected directly into components of Blazor apps.
* Blazor apps define and register custom services and make them available throughout the app via DI.
> [!NOTE]
> We recommend reading <xref:fundamentals/dependency-injection> before reading this topic.
## Default services
The services shown in the following table are commonly used in Blazor apps.
@ -399,6 +402,9 @@ Navigate to the `TransientExample` component at `/transient-example` and an <xre
* Framework-registered services can be injected directly into components of Blazor apps.
* Blazor apps define and register custom services and make them available throughout the app via DI.
> [!NOTE]
> We recommend reading <xref:fundamentals/dependency-injection> before reading this topic.
## Default services
The services shown in the following table are commonly used in Blazor apps.
@ -794,6 +800,9 @@ Navigate to the `TransientExample` component at `/transient-example` and an <xre
* Framework-registered services can be injected directly into components of Blazor apps.
* Blazor apps define and register custom services and make them available throughout the app via DI.
> [!NOTE]
> We recommend reading <xref:fundamentals/dependency-injection> before reading this topic.
## Default services
The services shown in the following table are commonly used in Blazor apps.