angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

Feature Request: modal component #6374

Closed graingert closed 7 years ago

graingert commented 7 years ago

Bug description: $uibModal makes it very difficult to do component architecture with a callback hierarchy

I'd like a component:

<uib-modal open="$ctrl.modalOpen" onClose="$ctrl.modalOpen = false">
  <uib-modal-header>...</uib-modal-header>
  <uib-modal-body>...</uib-modal-body>
</uib-modal>
wesleycho commented 7 years ago

This is not intended to be supported, as a declarative component is not flexible enough from a library perspective. One can already create a component that wraps the modal api provided by the library, so there should not be anything more added to the library itself, which creates api confusion & library bloat.