-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): add support for Angular 14 (#25403)
Resolves #25353
- Loading branch information
1 parent
0b275af
commit 122cdcc
Showing
6 changed files
with
114 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* This class is taken directly from Angular's codebase. It can be removed once | ||
* we remove support for < Angular 14. The replacement class will come from @angular/core. | ||
* | ||
* TODO: FW-1641: Remove this class once Angular 13 support is dropped. | ||
* | ||
*/ | ||
import { Injector, ProviderToken, InjectFlags } from '@angular/core'; | ||
/** | ||
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the | ||
* component tree. | ||
* | ||
* @developerPreview | ||
*/ | ||
export abstract class EnvironmentInjector implements Injector { | ||
/** | ||
* Retrieves an instance from the injector based on the provided token. | ||
* @returns The instance from the injector if defined, otherwise the `notFoundValue`. | ||
* @throws When the `notFoundValue` is `undefined` or `Injector.THROW_IF_NOT_FOUND`. | ||
*/ | ||
abstract get<T>(token: ProviderToken<T>, notFoundValue?: T, flags?: InjectFlags): T; | ||
/** | ||
* @deprecated from v4.0.0 use ProviderToken<T> | ||
* @suppress {duplicate} | ||
*/ | ||
abstract get(token: any, notFoundValue?: any): any; | ||
|
||
abstract destroy(): void; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
abstract onDestroy(callback: () => void): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters