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

71
Vistas
Angular 2 - Prevent Change Detection

I have a setInterval() function in a component class that fires off every 1/10 of a second. All it does is update a d3 graph and does not touch any angular bindings.

By default setInterval() triggers the change detection in angular from the root node.

Is there a way to run the setInterval() function without triggering any change detection?

I don't need the rest of the app to update itself since I know this only affects the graph and d3 is the only one responsible for the updating the graph.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You have to run it outside of angular. Take a look at this answer to a similar question.

https://stackoverflow.com/a/39626378/1710501

about 4 years ago · Santiago Trujillo 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