documentcloud/backbone — Issue #1077: View as Router constructor argument
Author: DreamTheater
Created: 2012-03-07 17:07:20+00:00
State: open

Hello, I want to propose use this declaration

new Router({
view: new View()
});

which similar to

new View({
collection: new Collection()
});

or

new View({
model: new Model()
});

Now Router should have initialize() method which will assign view instance to view property. It would be nice if view attribute for Router resolves as collection/model attribute for View.