Answer the question
In order to leave comments, you need to log in
How true is this entry for mvc?
There is a folder product
in which there is another folder product
with a file product.js
in which there is a class that ProductClass
stores all the methods of this page.
An instance of it is controller.js
imported ProductClass
and created, and all links to the buttons that call these methods are also there, and handlers are hung on them there.
From what visually changes, there is only one function and code for 10 lines.
product
- product
- product.js
- controller.js
view
for this one function, if it is ProductClass
convenient this
to use it in the class, because it is called from another method by the function. ProductClass
. MVC
, there should be 3 files. model
I product.js
get controller
it is controller.js
, view
not created, but it has one function that renders our product page. 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