Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

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.

share|improve this question

put on hold as off-topic by Pankaj Parkar, Daniel Mann, George Stocker 20 hours ago

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – George Stocker
If this question can be reworded to fit the rules in the help center, please edit the question.

    
All validation must happen on the server. – SLaks 21 hours ago
    
Thanks SLaks, but I want to understand what logic should reside in Angular Controller vs that at Server side – Deep Singhal 21 hours ago

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.