0
I am developing an application and came across the following problem:
I am working with an api that manages a website and have some endpoints like: banners, testimonials, user, images etc, most endpoints have some relationship with images, so I decided to create an endpoint images to center uploads, all images are uploaded to this endpoint images where the necessary validations are made.
when I am going to do some registration that needs images, I first do the image registration at endpoint images that returns me an array with the registry ids of the database where I store the directories, the site is angled, created a component fileinput to receive the images, this component has a serviceA that connects with the api in endpoit images, my doubt falls here: after the image is sent to the server and me returned the ids; who has access is the serviceA of fileinput, but I complete the register with the componentB who uses the serviceB how can I do to bring the return of serviceA into the serviceB?
@Injectable... Inject serviceA into serviceB
– Joannis