Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Modal without controller, but with directive/component as template #6162

Closed
jeserkin opened this issue Aug 15, 2016 · 1 comment
Closed

Modal without controller, but with directive/component as template #6162

jeserkin opened this issue Aug 15, 2016 · 1 comment

Comments

@jeserkin
Copy link

Feature request description:

As far as I can tell, it is not supported at the moment. Current solution requires controller to be specified to manage/work with $uibModalInstance. But if one would take component approach, then modal template could be a component or directive of type 'E', that can already have a direct cotroller bind to it.

Would be nice to have a way to pass/get $uibModalInstance inside this component to mange current modal.

Link to an approach, that would be nice to have:

http://jsbin.com/rimexuf/2/edit?html,js,output

Version of Angular, UIBS, and Bootstrap

Angular: 1.4.9

UIBS: 0.14.3

Bootstrap: 3.3.6

@wesleycho
Copy link
Contributor

Closing as a duplicate of #5683 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants