docs: Change import statement to use 'inject' function (#64491)

PR Close #64491
This commit is contained in:
Uaena_Alex_John
2025-10-17 15:33:50 +08:00
committed by Jessica Janiuk
parent c241038111
commit 2761d9e518
+1 -1
View File
@@ -9,7 +9,7 @@ The following example uses an `InjectionToken` to provide the [localStorage](htt
<docs-code header="src/app/storage.service.ts" language="typescript"
highlight="[[3,6],[12]]">
import { Inject, Injectable, InjectionToken } from '@angular/core';
import { inject, Injectable, InjectionToken } from '@angular/core';
export const BROWSER_STORAGE = new InjectionToken<Storage>('Browser Storage', {
providedIn: 'root',