Usually, the exchange of data between the client and server is executed using the following methods:-
------------------------------------------------------------------------------------------------------------------------
c.server.get([Object]) - It will make the server call, However, It will not refresh the $scope or c, execute asynchronously, so doesn't wait for the server response.
c.server.update() - It will make the server call, However, It will refresh the $scope or c, and execute synchronously, so wait for the server response.