Updating Views with Events, Models and Rivets

In this Backbone.js recipe, we’re going to allow updating a view via events triggered from any sub-view. The view won’t need a refresh(), because it will be bound to model change events using Rivets. tl;dr; live demo and gist

Routed Commands for Backbone.js

Here’s a quick fiddle that shows how to route a command between sub-views no matter how they’re nested in the DOM. Basically, when a sub-view is rendered it triggers a subscribe event that’s captured by the application view which then sets a delegate on another sub-view. This other sub-view is the source of the events, […]