Backbase interview question

How would you implement a Data Service in Angular?