Example of how to use angularjs with webapi