javascript – How to reference a js file in angular?

I'm trying to reference a js sheet in my project in angular, I've already referenced the scripts in the angular.json file:

                                "Scripts": [

But still the application does not work in the html part of my component "pet", here is the deposit, my idea is to use a function in js to load images through the page of imgur, as in this little project J & Have already tried to reference it with the "script" tag in the index.html file, as well as in the pet.component.html file, but it still does not work.