feat(ivy): implement the getters of ViewContainerRef (#25174)

BREAKING CHANGE: ViewContainerRef.parentInjector is deprecated without replacement

PR Close #25174
This commit is contained in:
Marc Laval
2018-07-25 18:11:39 +02:00
committed by Igor Minar
parent e99d860393
commit cd89eb8404
7 changed files with 134 additions and 14 deletions

View File

@ -922,7 +922,7 @@ export declare abstract class ViewContainerRef {
abstract readonly element: ElementRef;
abstract readonly injector: Injector;
abstract readonly length: number;
abstract readonly parentInjector: Injector;
/** @deprecated */ abstract readonly parentInjector: Injector;
abstract clear(): void;
abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number, injector?: Injector, projectableNodes?: any[][], ngModule?: NgModuleRef<any>): ComponentRef<C>;
abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C, index?: number): EmbeddedViewRef<C>;