Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

92
Views
Quiero hacer que un script externo sea accesible para todas las rutas en un proyecto angular

Ya agregué el script a index.html pero no puedo acceder a él dentro del código de ningún componente de mi proyecto angular. Sin embargo, es accesible desde index.html.

El guión: <script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>

Quiero que esto sea accesible en todas mis rutas de mi proyecto Angular.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El script está disponible en todo el mundo, solo se necesita la forma correcta de acceder a los Métodos.

Agregar

 declare let Twitch: any;

en la parte superior con las importaciones en el archivo ts y luego se puede acceder a los métodos con

 Twitch.ext
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!