V
V
Vitaly2017-07-08 15:35:59
Angular
Vitaly, 2017-07-08 15:35:59

How to design a responsive spa app?

Question about layout and routing. Mobile application screens are smaller in capacity, therefore there are more screens. In the desktop version, the situation is reversed. Consequently, the handlers are also different: in one case, this is a transition to a new screen, in the other, opening a modal window. Does this mean that adaptive layout is not applicable for applications and you will have to make different views on different devices? Or is it still possible to competently build adaptive applications? It is desirable to use dynamic loading of modules in this case.
I use Angular, I'm starting to learn Ionic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita Gushchin, 2017-07-08
@iNikNik

Does this mean that adaptive layout is not applicable for applications and you will have to make different views on different devices

The point of responsive layout is that the content adapts to the screen size. Your cap :) In the above example, there are no contradictions with the principles of adaptation
This can be implemented within the application. Here is an example of react and react-router v4: https://reacttraining.com/react-router/web/example... . There, the images in the gallery open either on the page or in a modal window. Depending on how the page was opened (note that the url of the gallery elements is the same in different ways of displaying)
Yes, you can. But you need to think through all the moments in advance
This allows you to optimize performance (initial render time, amount of data / code transferred, script parsing time, and so on). If you need it - use it)

R
Roman Alexandrovich, 2017-07-08
@RomReed

The ideology of the components is precisely that one component would be described so that it could be reused in several places. Thanks to this, you do not copy a bunch of code 500 times in different places.
As for adaptability, there are a bunch of different grids that allow you to layout without fear for adaptability.
Examples: bootstrap or material ui

Y
Yaroslav Sivakov, 2017-07-14
@yar3333

If the screens are very different, I would suggest making 2 different applications, but with partially shared components (that look the same or almost the same). Otherwise, the complexity of layout can easily go beyond reasonable limits.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question