Connect the API endpoint with Angular