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": [
          "../ha-angular/node_modules/jquery/dist/jquery.slim.min.js",
          "../ha-angular/node_modules/popper.js/dist/umd/popper.min.js",
          "../ha-angular/node_modules/bootstrap/dist/js/bootstrap.min.js",
          "../ha-angular/src/app/pet/js/imgur.js",
          "../ha-angular/src/app/pet/js/upload.js"
        ],

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.