This is working:
appCtrl.initializeApp = function ($q, $timeout) {
var defer = $q.defer(); $timeout(function() { defer.reject('something'); }, 0); return defer.promise; };
This is not working:
appCtrl.initializeApp = function ($q, $timeout) {
var defer = $q.defer(); setTimeout(function() { defer.reject('something'); }, 0); return defer.promise; };
$timeout wrapper is used or not. --
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/zyhMQRuNqM0/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
ng.$rootScope.Scope Scope model observation mechanism in angular, which means faster propagation of resolution or rejection into your models and avoiding unnecessary browser repaints, which would result in flickering UI.