What is the best way to implement a parent application controller or namespace controller in backbone.js?

Examples of applications such as James Yu ( http://www.jamesyu.org/2011/01/27/cloudedit-a-backbone-js-tutorial-by-example/ ) give great examples of how to integrate rails with the base but what if you want 10 controllers? or 30?

+3
source share
1 answer

I am having trouble understanding exactly what your question is. We create a client based on backbone.js for the Rails 3 backend. We are also new to backbone.js, but our application structure corresponds to the same link that you referred to:

index.html
js
+- app.js
+- controllers
  +- controller.js
  +- controller1.js
  ...
  +- controllern.js

Backbone.Controller , .

, , . , , , , .

. .

, , ...

+2

Source: https://habr.com/ru/post/1794231/


All Articles