Answer the question
In order to leave comments, you need to log in
How to be with MVC if at AJAX only M is received?
Is this approach correct with node js (express js), when the client-application of the phone Return the entire page to the application, that is, fully implement the MVC page on the server and, upon request for a specific page, return it entirely, that is, the client will have one indexjs which once it will turn to some kind of router on express js and then all the links, etc. and all the control will already return as if it were pages? or is it better to just leave the database control on the node and that's it?
Otherwise, after all, only M remains from MVC
And the controller and the viewer are no longer needed
A class, say add, will be enough to immediately write data to the database
How in such cases, in general, to be sort of AJAXM somehow turns out and not MVC
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question