Hooking up angular front end to the api