I want to create a queue of objects which is shared between two components in the same module. Also, as soon as there are new objects inserted or deleted from the queue, the changes should reflect in both the components.
I will push or pop from the queue using buttons and associated functions in both of those components.
How do I achieve this?
Angular 9
NodeJS 12.18
service
to the module (both component will be able to inject)RxJs
queue and expose it (or a subset of it) as the service API
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.