More tweaking to connect Angular and API