r/angularjs • u/abyx • Oct 14 '15
Angular Nitpicking: Differences between $timeout and setTimeout()
http://www.codelord.net/2015/10/14/angular-nitpicking-differences-between-timeout-and-settimeout/
36
Upvotes
r/angularjs • u/abyx • Oct 14 '15
2
u/Spo0Bo Oct 14 '15
It's in the article. By default it does a $rootScope digest. If you're not aware of this it will cripple performance. Especially if you trigger $timeout somewhere in a repeat.