I've been thinking about the concept of controller in the MVC pattern, but there's something i would like to discuss, should we create a controller per entity (let's say Product) or per view when using angularJS (since angularJS follows the singleton concept) or is it right to have a controller for all the views related to "products" for example?
I'll give a situation:
Let's say we have a module called purchases and under that module we've got three submodules: products, suppliers, & stock-moves, each submodule has views for the CRUD operations, let's say that under products we have: list-products.view.html, create-product.view.html, edit-product.view.html; what would be the best approach for the controllers? a single controller per view, or a controller for all views?
Thanks for your help