V
V
Vladimir2016-07-25 12:13:55
JavaScript
Vladimir, 2016-07-25 12:13:55

Is there an analogue of the $timer function in Angular 2?

Well actually all question in a subject. When using a normal javascript setTimeout, you can change the data between digest cycles and Angular will not see the change. How to solve this problem in the second angular?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lega, 2016-07-25
@Casufi

Angular2 replaces setTimeout, setInterval and the rest of the world (zone.js), so Angular2 should see the changes after setTimeout.

A
Alex, 2016-07-25
@streetflush

zone.js

_
_ _, 2016-07-25
@AMar4enko

blog.thoughtram.io/angular/2016/02/01/zones-in-ang...
specifically runOutsideAngular

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question