How to $http Synchronous call with AngularJS How to $http Synchronous call with AngularJS angularjs angularjs