gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.33k stars 461 forks source link

Adding $evalAsync suggestion #230

Closed dvelasquez closed 8 years ago

dvelasquez commented 8 years ago

In the controller is better use $evalAsync than $timeout to queue in the digest cycle for tasks like this.

http://stackoverflow.com/questions/17301572/angularjs-evalasync-vs-timeout