Publish an event with Backbone Mediator from a model
-
26-06-2021 - |
Domanda
Is it a good practice / pattern to publish events from Backbone models?
Soluzione
Sort answer: yes
Long answer: This is a very good approach to use events: Model is changed by some component and some other is listen to this change and execute a proper action.
This is a very good way of communication between components that have not any relation with each other but a common Model.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow