DynamicComponent class
Dynamically renders another component, setting the value field on the dynamic component if it implements RendersValue (and not if the component does not implement the interface).
- Annotations
-
- @changeDetectionLink
- @Component(selector: 'dynamic-component', template: '''<template #marker></template>''', changeDetection: ChangeDetectionStrategy.onPush)
Constructors
- DynamicComponent(ComponentLoader _componentLoader)
Properties
- childComponent → ComponentRef?
-
Returns the loaded dynamic component reference.
no setter
-
componentFactory
← ComponentFactory<
Object> ? -
The component factory of the component to dynamically render.
no getter
- componentType ← Type?
-
The type of component to dynamically render.
no getter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onLoad
→ Stream<
ComponentRef?> -
Fired when component is loaded allowing clients to get a handle on the
component loaded.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ← dynamic
-
The value to set on the component if the component implements
RendersValue. Optional.
no getter
- viewContainerRef ← ViewContainerRef?
-
no getter
Methods
-
ngAfterChanges(
) → void -
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited