Hi A Matias,
You already can use $timeout(duration).then(doSomething). You can try this
for yourself. open up the developers console in your browser and type:
var t = angular.injector(['ng'])
var to = t.get('$timeout')
to(2000).then(function(){console.log('hi')}))
the result will be:
Promise {$$state: Object}
and 2 seconds later:
hi
(well at least it did in my browser ;)
Regards
Sander
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.