Represents a container where one or more views can be attached to a component.
abstract class ViewContainerRef { abstract readonly element: ElementRef<any>; abstract readonly injector: Injector; abstract readonly parentInjector: Injector; abstract clear(): void; abstract get(index: number): ViewRef | null; abstract readonly length: number; abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C | undefined, options?: { index?: number | undefined; injector?: Injector | undefined; } | undefined): EmbeddedViewRef<C>; abstract createEmbeddedView<C>(templateRef: TemplateRef<C>, context?: C | undefined, index?: number | undefined): EmbeddedViewRef<C>; abstract createComponent<C>(componentType: Type<C>, options?: { index?: number | undefined; injector?: Injector | undefined; ngModuleRef?: NgModuleRef<unknown> | undefined; environmentInjector?: EnvironmentInjector | NgModuleRef<...> | undefined; projectableNodes?: Node[][] | undefined; } | undefined): ComponentRef<C>; abstract createComponent<C>(componentFactory: ComponentFactory<C>, index?: number | undefined, injector?: Injector | undefined, projectableNodes?: any[][] | undefined, environmentInjector?: EnvironmentInjector | NgModuleRef<any> | undefined): ComponentRef<C>; abstract insert(viewRef: ViewRef, index?: number | undefined): ViewRef; abstract move(viewRef: ViewRef, currentIndex: number): ViewRef; abstract indexOf(viewRef: ViewRef): number; abstract remove(index?: number | undefined): void; abstract detach(index?: number | undefined): ViewRef | null;}