Is it possible for a component to offer a service based on its inputs? In my situation, my component relies on a service provided by another firebase service, and I am looking to have the component create a new firebase service with a child element, allowing the other service to only access this specific part of the database.
Currently, my solution involves the component calling the service's setChild function to specify the child element. However, I am interested in exploring if it is feasible to achieve this in the manner described above.
Thank you, Tamas