AbstractAbstractanchorAbstractlengthReports how many views are currently attached to this container.
The number of views.
Abstractadoptmove a view to a new location from another container
the view that needed to be inserted in this container.
OptionalnewIndex: number
new index in this container, or append
AbstractclearDestroys all views in this container.
Abstractcreatecreate component by tag name selector.
the tag name for the aurora custom-element
Optionaloptions: IndexOptionscreate component by the aurora custom-element View Class
the generated aurora view class
Optionaloptions: IndexOptionsInstantiates a single component and inserts its host view into this container.
Component Type to use.
Optionaloptions: ViewContainerComponentOptions
An object that contains extra parameters:
The new HTMLComponent which contains the component instance and the host view.
Abstractcreatecreate an HTMLElement by tag name selector.
the tag name for the aurora custom-element
Optionaloptions: HTMLElementOptionscreate an HTMLElement by tag name selector.
the tag name for the aurora custom-element
Optionaloptions: HTMLElementOptionscreate HTMLElement by View Class reference
Optionaloptions: HTMLElementOptionsAbstractcreateInstantiates an embedded view and inserts it into this container.
The HTML template that defines the view.
Optionaloptions: ViewContainerOptions<C>The ViewRef instance for the newly created view.
Abstractcreatecreate a text node and insert to the view
Optionaloptions: IndexOptionsAbstractdetachDetaches a view from this container without destroying it.
Use along with insert() to move a view within the current container.
Optionalindex: number
The 0-based index of the view to detach. If not specified, the last view in the container is detached.
AbstractforPerforms the specified action for each element in an array.
AbstractgetRetrieves a view from this container.
The 0-based index of the view to retrieve.
The ViewRef instance, or null if the index is out of range.
AbstractindexReturns the index of a view within the current container.
The view to query.
The 0-based index of the view's position in this container,
or -1 if this container doesn't contain the view.
AbstractinsertAbstractmoveMoves a view to a new location in this container.
The 0-based index of the old location.
The 0-based index of the new location.
AbstractremoveDestroys a view attached to this container
Optionalindex: number
The 0-based index of the view to destroy. If not specified, the last view in the container is removed.
remove a view attached to this container with out destroying it. the view will be still attached to the DOM. useful in case of moving the view/component to anther container without realizing it again. returns the view.
the view in the index
Abstractswapswap 2 view position
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
ViewContainerRefof an element by placing aDirectiveinjected withViewContainerRefon the element, or use aViewChildquery.