javascript - What is the pattern for composite views in backbone? -


For example, I have a view attached to the body, all other thoughts are connected to the elements in the body.

I believe that I should use many scenes as a sequence.

But I'm not sure if I should, or if I should, then how to do it.

This is my top-level view

  // Login shortcut "View" var UserTryView = Backbone.View ("Keydown": "keydown": "keydown"} , Keydown: function (e) {console.log (): 'Keydown detected'); Var self = this; This.key [eccode] = zero; $ A. Testkins (this. Key, '1684', function () {self.render ();})}}, funnel: function (e) remove {this.keys [e.keyCode];}; Render: function () {new favorite view ({L: $ AL ('# mm')}); // New FeedView ({El: $ al ('# et_view'}}; // new account view (); // storage.set obz (packet.service.smalls); Page.flip ('main'); }}); Var user_try_view = New UserTryView ();  

It looks like you need marionette.js or you have your own views Should be invented

You can create LayoutView and define areas inside this view. Then you can present other views inside a specific area.

Read more:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -