Since Angular JS provides an MVC perspective to web design, does it means that server-side scripting can be ignored? I mean I can make $http request within my controller to update/query data(cloud database) as well as write some simple business logic. I am not very sure what kind of logic should reside in Angular controllers vs that in server side programming. Could you please link me to the best practice.
put on hold as off-topic by Pankaj Parkar, Daniel Mann, George Stocker♦ 20 hours agoThis question appears to be off-topic. The users who voted to close gave this specific reason:
|
|||||||||
|
The big trend going on today is APIs and Microservices. Do some googling on that and you are sure to find enough material to get you going. The basic idea is that you push all of your business logic and data to a backend stack and carefully expose functions to your authenticated users through REST api endpoints. This is standard in any web application right now. One of my favorite examples/case studies is how Soundcloud migrated from a large monolithic code base to a microservices oriented architecture: http://philcalcado.com/2015/09/08/how_we_ended_up_with_microservices.html |
|||
|