2016-08-15 24 views

回答

0

的setInterval()可以Angular2使用,而不會觸發changedetection如下,

(不明白你的目的。它的更好,如果你能告訴我們你想做些什麼?)

setInterval(function(){  //<-----rather than using setInterval(()=>{...}); 
    console.log("No Chnagedetection"); 
},1000);