Is there a way to dynamically create services at runtime using a string name (like reflection)? For example:
let myService = new window[myClassName](myParams);
Alternatively, you could try:
let myService = Object.create(window[myClassName].prototype);
myService.constructor.apply(myService, myParams);
I have explored the Injector
class, but it requires a type instead of a string (https://angular.io/api/core/Injector). Do you have any ideas on how to achieve this?