Example for post - get request with angular.