Designing our SPA main pieces
Usually when designing SPA applications, I create a core application code base which is loaded in the browser at the application's initial load phase. This code base provides application-level functionality that is independent of the application's views. The application core consists of many modules that are loaded together. If you are familiar with Model-View-Controller (MVC) or Model-View-Wildcard (MV*) application design patterns, this core is essentially the controller of the application.
Note
MVC and MV* design patterns
These design patterns create a good degree of specialization and separation of concerns in the code. Understanding these patterns is important in creating a good application architecture. While ...
Get Modular Programming with JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.