문제

Is it a good practice / pattern to publish events from Backbone models?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top