CachingDeferredContentDirective class

Nested inside a DeferredContentAware container, this directive creates its content the first time the parent container becomes visible.

This directive is not recommended as it will cause Angular to change-detect the contents even when hidden. If your hidden content has push-detection enabled, go for it.

Annotations
  • @Directive(selector: '[cachedDeferredContent]')

Constructors

CachingDeferredContentDirective(ViewContainerRef _viewContainer, TemplateRef _template, DeferredContentAware parent, ChangeDetectorRef changeDetector)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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