Supports imperatively loading and binding new components at runtime.

AngularDart is most optimized when the entire application DOM and component tree is known ahead of time, but sometimes an application will want to load a new component at runtime.

This class is replacing SlowComponentLoader, which has almost the same API and properties, but uses runtime introspection in order to lookup and then create the component. Going forward, ComponentLoader is preferred.

Implemented by
Annotations

Constructors

ComponentLoader()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

loadDetached(ComponentFactory component, { Injector injector }) ComponentRef
Creates and loads a new instance of the component defined by component. [...]
@mustCallSuper
loadNextTo(ComponentFactory component, { Injector injector }) ComponentRef
Creates and loads a new instance of the component defined by component. [...]
loadNextToLocation(ComponentFactory component, ViewContainerRef location, { Injector injector }) ComponentRef
Creates and loads a new instance of the component defined by component. [...]
@mustCallSuper
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(other) → bool
The equality operator. [...]
inherited