Inter-Module Communication Between City and ItemListing Modules in Oqtane #4794
-
Hi everyone, I'm working on a project with two modules in Oqtane: a City module that displays a dropdown list of cities and a ItemListing module that needs to load products based on the selected city. I would like to implement inter-module communication so that when a user selects a city in the City module, the ItemListing module automatically updates to show products for that city. I've considered using an Event Aggregator pattern for this, but I’m looking for advice on the best practices for implementing this. Specifically: How should I structure the event for the selected city? PS: I have checked this thread-#4592 Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @techravi007 It shows how to use the INotifyPropertyChangeEvent implement in Oqtane |
Beta Was this translation helpful? Give feedback.
Hi @techravi007
This will get you started and what you want https://youtu.be/Yvp_PLvJqqk?t=1636
It shows how to use the INotifyPropertyChangeEvent implement in Oqtane