Angular service now calling REST endpoints.