angular-ui/bootstrap — pull request #2748 by gdi2290 (2014-09-24 22:49:33+00:00)
Title: feat($model): allow modalOptions templateProvider

allow templateProvider similar to ui-router's templateProvider
```javascript
var modal = $modal.open({
templateProvider: function($http, RandomService) {
return $http.get('/api/for/'+ RandomService.generate() + ''template.html').then(function(res) { res.data });
},
controller: 'ControllerCtrl',
// size: size,
resolve: {
item: function() {
return 'resolvedItem';
}
}
}).result;

modal.then(function(ok) {
console.log('ok', ok);
})['catch'](function(err) {
console.log('err', err);
});
```