Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/di/reflective_injector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const UNDEFINED = new Object();
* Notice, we don't use the `new` operator because we explicitly want to have the `Injector`
* resolve all of the object's dependencies automatically.
*
* @stable
* @deprecated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add "Use the light-weight alternative Injector.create instead of ReflectiveInjector which is slow and brings in a lot of code."

*/
export abstract class ReflectiveInjector implements Injector {
/**
Expand Down
2 changes: 1 addition & 1 deletion tools/public_api_guard/core/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ export declare class QueryList<T> {
toString(): string;
}

/** @stable */
/** @deprecated */
export declare abstract class ReflectiveInjector implements Injector {
readonly abstract parent: Injector | null;
abstract createChildFromResolved(providers: ResolvedReflectiveProvider[]): ReflectiveInjector;
Expand Down