How to Inject Angular Services in External JavaScript Functions, and Component’s Static Functions
As your enterprise application starts growing, you come to the point where you have one or many external JavaScript functions from 3rd party libraries, some static functions/classes. The situation becomes interesting when you have to pass data to these functions from the @Injectable()
services. In this story, we will try to solve them.