J
J
JIakki2016-04-28 23:27:17
Node.js
JIakki, 2016-04-28 23:27:17

How to properly connect all MVC components?

Good day
I have a Node.js application (which is not so important for the question)
I have three MVC components:

require('./model');
  require('./view');
  require('./controller');

Now the next one depends on the previous one (if you swap it, everything will break)
How to connect all the components correctly? How to include them in the main file?
Whether to connect the controller only in the main file, and everything else from the controller?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question