docs(core): deprecate ReflectiveInjector

closes #18598
This commit is contained in:
Trotyl 2017-08-09 15:18:05 +08:00 committed by Victor Berchet
parent 7f2037f0b6
commit dca50deae4
2 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,6 @@ import {cyclicDependencyError, instantiationError, noProviderError, outOfBoundsE
import {ReflectiveKey} from './reflective_key';
import {ReflectiveDependency, ResolvedReflectiveFactory, ResolvedReflectiveProvider, resolveReflectiveProviders} from './reflective_provider';
// Threshold for the dynamic version
const UNDEFINED = new Object();
@ -51,7 +49,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 from v5 - slow and brings in a lot of code, Use `Injector.create` instead.
*/
export abstract class ReflectiveInjector implements Injector {
/**

View File

@ -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;