Assume a simple SPA (Single-page application), maybe a dashboard and these basic conditions:
- The Model contains methods for accessing and displaying data;
- The View contains methods to load templates and apply model.data to template;
- The Controller manages the user commands;
- The Router handles the navigation;
In our example, we will make sure that the user can configure the dashboard to update itself every N seconds pulling new data from back-end (pullFrequency).
In which component is proper set up the pullFrequency parameter:
- Model?
- View?
- Controller?
- Router?
- Somewhere else?