4 ms·
Elegantly accessible state in Angular services using promises
- weddpros 12y agoshouldn't `$q.defer().resolve(_userData);` read `deferred.resolve(_userData);` ? I think your code doesn't work as it creates two promises, resolves one and returns the other...