Reports how many views are currently attached to this container.
The number of views.
create 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: ViewContainerComponentOptionsAn object that contains extra parameters:
The new HTMLComponent which contains the component instance and the host view.
create 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: HTMLElementOptionsInstantiates 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.
Detaches a view from this container without destroying it.
Use along with insert() to move a view within the current container.
Optionalindex: numberThe 0-based index of the view to detach. If not specified, the last view in the container is detached.
Returns 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.
Inserts a view into this container.
The view to insert.
Optionalindex: numberThe 0-based index at which to insert the view. If not specified, appends the new view as the last entry.
The inserted ViewRef instance.
Moves a view to a new location in this container.
The view to move.
The 0-based index of the new location.
The moved ViewRef instance.
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.