I want to implement a special instance of an event event aggregator with requirejs as an explanator here
Looking at the examples here and in the docs, I noticed that the calls to vent.on and vent.trigger are mostly used in views. Then my template will look like this:
define(['marionette', 'vent'], function (Marionette, vent) { return Marionette.ItemView.extend({ initialize: function () {
Is this template correct (views are responsible for managing aggregator events) or should I use it in models and collections?
source share