Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

73
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda