ECMAScript 6 promises for Angular.JS