O'Reilly logo

Getting Started with Backbone Marionette by Arturo Soto, Raymundo Armendariz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the RequestResponse object

Finally, the last part of the Wreqr object is the RequestResponse, which in our opinion is definitely a nice addition to the Backbone development. We just saw how we can make different components work together with the help of events in order to communicate each other. We also learned that not all the code belongs to a view or router of the controller, and for those cases, the Marionette commands are definitely a good option in order to keep our concerns separate. Similar to Commands, the RequestResponse object can help us split more responsibilities of the code in an application.

The RequestResponse object conceptually works in the same way as events and Commands, where an object fires a call and the other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required