mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: Change import statement to use 'inject' function (#64491)
PR Close #64491
This commit is contained in:
committed by
Jessica Janiuk
parent
c241038111
commit
2761d9e518
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user