Aptean Interview Question

Describe how data is sent from Angular to API what is the difference between factory pattern and IOC