adding examples on how to use angular to submit to api server