integrated angular.js client with server api