TxMountPoint
a class enable two ways communication between any two components.
it include two RxJS subjects one for tasks and other for reply.
Defining a mount point is as:
Mountpoint objects are kept in TxMountPointRegistry by their identifier (a selector) which could be a string or a Symbol.
The example above it using a string as identifier but this one is working as well:
NOTE: when you use Symbol make sure they all define in one central place otherwise you will not able to restore a mountpoint since the Symbol will change. For example:
Component
is any regular class which has a mount-point.
it register it's own mount point on TxMountPointRegistry under some name.
subscribe on tasks subject of the mount-point ready to get task messages.
reply back on the reply subject on the mount-point.
For example
Last updated