-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Component: Modal #29
Comments
UI Bootstrap has support for this concept, but it doesn't do that great a job with it. It'd be nice to see modals with component support, more similar to how UI Router handles components. Meaning that a component doesn't have to be designed to work with UI Router... UI Router can reference any component and pass necessary bindings to it. UI Bootstrap, on the other hand, asks that components take a specific set of bindings:
...and call |
I was banging my head on how to approach it, I think the component idea could be an excellent solution. And a service to make the component aware of the modal and communicate with the "parent" controller really sounds like the right approach. I'll play around with it a little and come back with more thoughts... |
I use UI Bootstrap modal extensively to do complex screens. Component support is mandatory to keep this simple. Currently, UI Bootstrap supports components and allows me to do: var instance = $uibModal.open({ component: someModalComponent }); What would it take to support it and do you need help implementing it? |
@nvivo I totally agree and any help would be highly appreciated! I admit I'm not sure how to approach this, so even a partial PR to help us get started will be welcomed... |
I'm also interested into this ! |
I have been thinking about this and wondering, and I know this may be too late, but why re-invent everything to support BS4 if most of the changes are in the HTML? Why not simply fork the current version and do the changes to the templates and properties? Wouldn't it be much easier than starting from scratch? |
Allow the modal service to accept a component, its bindings, and then allow that component to manage the modal and return data to the caller. It doesn't appear that you can do this currently.
The text was updated successfully, but these errors were encountered: