GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing angular.dev — ViewContainerRef • Angular Anchor element that specifies the location of this container in the containing view. Each view container can have only one anchor element, and each anchor element can have only a single view container. Root elements of views attached to this container become siblings of the anchor element in the rendered view. Access the The dependency injector for this view container. @deprecated No replacement Destroys all views in this container. @returns voidReports how many views are currently attached to this container. Instantiates an embedded view and inserts it into this container. @paramcontext C | undefinedThe data-binding context of the embedded view, as declared
in the @paramoptions { index?: number | undefined; injector?: Injector | undefined; onError?: ((error: Error, details: ErrorDetails) => void) | undefined; } | undefinedExtra configuration for the created view. Includes:
Instantiates an embedded view and inserts it into this container. @paramcontext C | undefinedThe data-binding context of the embedded view, as declared
in the @paramindex number | undefinedThe 0-based index at which to insert the new view into this container. If not specified, appends the new view as the last entry. Instantiates a component and inserts its host view into this view container. @paramoptions { index?: number | undefined; injector?: Injector | undefined; ngModuleRef?: NgModuleRef<unknown> | undefined; environmentInjector?: EnvironmentInjector | NgModuleRef<unknown> | undefined; projectableNodes?: Node[][] | undefined; directives?: (Type<unknown> | DirectiveWithBindings<unknown>)[] | undefined; bindings?: Binding[] | undefined; onError?: ((error: Error, context: ErrorDetails) => void) | undefined; } | undefinedAn object that contains extra parameters:
@returns ComponentRef<C>The new Returns the index of a view within the current container. @returns numberThe 0-based index of the view's position in this container,
or Destroys a view attached to this container @paramindex number | undefinedThe 0-based index of the view to destroy. If not specified, the last view in the container is removed. @returns voidDetaches a view from this container without destroying it.
Use along with @paramindex number | undefinedThe 0-based index of the view to detach. If not specified, the last view in the container is detached. @returns ViewRef | nullDescriptionRepresents a container where one or more views can be attached to a component. Can contain host views (created by instantiating a
component with the A view container instance can contain other view containers, creating a view hierarchy. Usage NotesThe example below demonstrates how the Note: the example uses standalone components, but the function can also be used for non-standalone components (declared in an NgModule) as well.
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |