Welcome Guest, Not a member yet? Register   Sign In
Should data be manipulated in the controller or is it "View"'s job
#2

I haven't used Angular before, but in general I would recommend a single database call, and do all of your processing/grouping/sorting of data in your controller (or better yet, a library, to keep controllers lean).

The view should then simply be iterating over the data and displaying it.
Reply


Messages In This Thread
RE: Should data be manipulated in the controller or is it "View"'s job - by JayAdra - 08-05-2016, 10:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB