Working on angular app using REST API