SlowComponentLoader class

Supports imperatively loading and binding new components at runtime.

It will soon be required to instead use ComponentLoader, which is a nearly identical synchronous API that is much more optimized and will be supported long-term. See doc/component_loading.md for more information.

Annotations
  • @Deprecated('Use ComponentLoader with an imported ComponentFactory instead.')
  • @Injectable()

Constructors

SlowComponentLoader(ComponentLoader _loader)
const

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

load<T>(Type type, Injector injector) → Future<ComponentRef<T>>
Creates and loads a new instance of the component defined by type. [...]
loadNextToLocation<T>(Type type, ViewContainerRef location, [ Injector injector ]) → Future<ComponentRef<T>>
Creates and loads a new instance of component type next to location. [...]
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 ==(dynamic other) → bool
The equality operator. [...]
inherited