Answer the question
In order to leave comments, you need to log in
How to build a modular frontend architecture?
Single page application.
Approximate page structure:
header>menu,slider
content>profile
footer
When the page is navigated, it sends which modules are already available and loads the missing ones, hides the unnecessary ones (but does not delete them). The problem arose when the same module should produce different data. For example, when switching from the profile of one user to the profile of another, the profile module is used on both pages, but the data is needed differently.
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