Abstract
Abstract
anchorAbstract
lengthReports how many views are currently attached to this container.
The number of views.
Abstract
clearAbstract
createcreate component by tag name selector
.
the tag name for the aurora custom-element
Optional
options: IndexOptionscreate component by the aurora custom-element View
Class
the generated aurora view class
Optional
options: IndexOptionsInstantiates a single component and inserts its host view into this container.
Component Type to use.
Optional
options: ViewContainerComponentOptionsAn object that contains extra parameters:
The new HTMLComponent
which contains the component instance and the host view.
Abstract
createcreate an HTMLElement by tag name selector
.
the tag name for the aurora custom-element
Optional
options: HTMLElementOptionscreate an HTMLElement by tag name selector
.
the tag name for the aurora custom-element
Optional
options: HTMLElementOptionscreate HTMLElement by View Class reference
Optional
options: HTMLElementOptionsAbstract
createInstantiates an embedded view and inserts it into this container.
The HTML template that defines the view.
Optional
options: ViewContainerOptions<C>The ViewRef
instance for the newly created view.
Abstract
createAbstract
detachDetaches a view from this container without destroying it.
Use along with insert()
to move a view within the current container.
Optional
index: numberThe 0-based index of the view to detach. If not specified, the last view in the container is detached.
Abstract
getAbstract
indexAbstract
insertInserts a view into this container.
The view to insert.
Optional
index: 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.
Abstract
moveAbstract
removeAbstract
update
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
ViewContainerRef
of an element by placing aDirective
injected withViewContainerRef
on the element, or use aViewChild
query.