Good day, stack flocker, I write the application, and thought about the logic, now I do this:
1) I pull data from the database on the server (for example, photos that are divided into albums)
2) Save all photos to an array
3) When you click on a particular album, I transfer all the photos and album id to the angular method
4) I make a selection of photos with the desired albumId and return to the array.
Can you please tell us how it would be more correct to execute these and similar actions in terms of logic and security, on the client side, or do it all on the server side?
Thanks in advance for your answers!