Friday, 3 August 2018

Is it possible to list array of component dependency injectors?

How do I list all the dependency injectors of a component in angular?

This requirement is for testing.

For ex in the below code :

constructor(private _logger: LoggerService, private _router: Router,
                private _adminService: AdminService) {
}

I need to fetch array of DI's

0 -> LoggerService
1 -> Router
2 -> AdminService



from Is it possible to list array of component dependency injectors?

No comments:

Post a Comment