Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

90
Vistas
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: <script src="https://extension-files.twitch.tv/helper/v1/twitch-ext.min.js"></script>

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

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The script is available globally, just needed the right way to access the Methods.

Add

declare let Twitch: any; 

at the top of with the imports in the ts file and then the methods can be accessed with

Twitch.ext
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda