This is more of a syntax/readability question. Let's say I have this:
  ProductsService.getProducts()
    .then(function (products) {
      model.products = products;
    }, function(){
      //handle error
    });
If the promise is resolved, I populate model.products with the result of the promise. Is there a way to organize this code so it's more like:
model.products = //result of promise
I prefer having the variable I'm setting front and center instead of having it buried in that promise.
 
     
    