Angular2ManagedZone class

An implementation of ManagedZone that uses Angular 2's NgZone.

Inheritance
Annotations
  • @Deprecated('Use NgZone directly instead')
  • @Injectable()

Constructors

Angular2ManagedZone(NgZone _ngZone)

Properties

hashCode int
The hash code for this object.
no setterinherited
inInnerZone bool
Whether we are currently executing in the inner zone. This can be used by clients to optimize and call runOutside when needed.
no setteroverride
innerZone Zone?
getter/setter pairoverride-getter
inOuterZone bool
Whether we are currently executing in the outer zone. This can be used by clients to optimize and call runInside when needed.
no setterinherited
isRunning bool
Whether onTurnStart has been triggered and onTurnDone has not.
no setterinherited
onEventDone Stream
A synchronous stream that fires when the last turn in an event completes. This indicates VM event loop end.
no setterinherited
onTurnDone Stream
A synchronous stream that fires when the VM turn is finished, which means when the inner (managed) zone has completed it's private microtask queue.
no setterinherited
onTurnStart Stream
A synchronous stream that fires when the VM turn has started, which means that the inner (managed) zone has not executed any microtasks.
no setterinherited
outerZone Zone?
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

capturedEventDone(dynamic event) → void
override
capturedTurnDone(dynamic event) → void
override
capturedTurnStart(dynamic event) → void
inherited
dispose() → void
Disposes this disposable and any resources it has open.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runInside<T>(T fn()) → T
Runs the code within fn inside of this zone. This may trigger an onTurnStart and onTurnDone event if you are outside the zone when calling. onTurnStart may be executed after executing fn.
override
runOutside<T>(T fn()) → T
Runs the code within fn outside of this zone.
override
toString() String
A string representation of this object.
inherited

Operators

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