I am having a javascript file say xyz.js which contain a function call on some event:
callToCom(x,y,z);
This function call is doing some piece of work.
I want to define that function in some of my angular 5 component.
Bit how can I read a function call trigger from external javascript file?