PortalHostDirective class

An implementation of PortalHost as an Angular 2 template directive.

For example:

Inheritance
Annotations
  • @Directive(selector: '[portalHost]')

Constructors

PortalHostDirective(ComponentLoader _componentLoader, ViewContainerRef _viewContainerRef)

Properties

hasAttached bool
True if the host has a portal attached within.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
portal ← dynamic
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(Portal<Object?>? portal) Future
Attaches portal.
inherited
attachComponentPortal(ComponentPortal<Object> portal) Future<ComponentRef<Object>>
override
attachTemplatePortal(TemplatePortal portal) Future<Map<String, dynamic>>
override
detach() Future<void>
Detaches any active portal.
inherited
dispose() → void
Disposes this disposable and any resources it has open.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPortalDisposer(DisposeFunction fn) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited