Moved the promise into the scope.

AngularJS directives inherently understand promises.  They will do the
promise.then() work for you.