got angular to talk to the REST API