I want to make an external script accessible to all the routes in an angular project

I have already added the script to index.html but can’t access it inside code of any component of my angular Project.
It is however accessible from the index.html.

The Script:

I want this to be accessible in all of my routes of my Angular project.