Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
bosi5087yDepends on how you app is working. If the full menu is already on client side (in browser) than is just the view showing other things, but if you load the submenu after clicking via e.g. ajax than the ajax request is of course sent to the controller.
-
Depends. Geberally, you should only ping the controller with requests if the thing you want to display is dynamic. If you have a static menu, then by no means should the controller take care of it. If you are in doubt, ask yourself 'does this input effect the database/api/whatever in any way?'
Related Rants
Something about MVC. If one clicks on the UI to open a menu, is the event sent to the controller which updates the view or does the view "just display the menu"?
question
mvc
ui
design patterns