angular-ui/bootstrap — pull request #2890 by jeffchienzabinet (2014-10-27 04:33:25+00:00)
Title: Allow $modal resolve to accept plain values

Often I find myself writing code like:
$modal.open({...resolve: {object: function() { return obj; }...})
because the caller already knows what object should be.

This could potentially be condensed to:
$modal.open({...resolve: {object: obj; }...})
if resolve accepts plain values, in addition to functions and injectables.