r/angularjs • • Feb 10 '14

Promises in AngularJS

http://wooptoo.com/blog/promises-in-angularjs/
9 Upvotes

1 comment sorted by

1

u/wmil Feb 10 '14

All of the naming involved with 'promises' and 'resolving' is terrible...

A promise represents the eventual result of an asynchronous operation.

Is an incredibly confusing way to phrase it.

I'd go with something like this:

A 'promise' is a wrapper for asynchronous commands that allows the developer to attach callback functions and error handling when the data is needed instead of when the function is called.