[Feature request] Support $uibmodal.open windowTemplate option
Author: Sn0wFoxCreated Jul 11, 2017Updated Mar 14, 2019
Hi,
According to the current doc, $uibmodal.open() supports the option windowTemplateUrl but not something like windowTemplate. However, it supports templateUrl and template as well.
My app is fully bundled with webpack and I'd like to bundle my window's template as well instead of having an extra http request just for that (I can still do something about it using ng-cache-loader but it just doesn't feel right.
It would look something like that:
$uibModal.open({
template: require('./some.tpl.html'),
windowTemplate: require('./window.tpl.html')
})instead of
$uibModal.open({
template: require('./some.tpl.html'),
windowTemplateUrl: 'path/to/window.tpl.html'
})Is there any reason to not provide such an option when template and templateUrl are fully supported ?
Source: angular-ui/bootstrap