-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
How to create a modal programmatically? #1830
Comments
modal service is coming soon |
@valorkin cool, thanks. Not to be a pain here, but do you have any ETA? |
First thing is to land v2 with new datepicker |
@valorkin thanks :) |
Any news on the ETA on this? |
Work is in progress #2047 |
fixes #1998 fixes #1995 fixes #1830 fixes #1181 fixes #579 * feat(modal): modal service wip * feat(modal): wip, add close buttons attribute support, add ability to open modaol with component * feat(modal): add config, move creating of loader to constructor, add demo * fix(modal): fix service path * fix(modal): fix api-docs * fix(modal): fix scroll on modals created by service, add docs * feat(modal): wip, add BsModalService.show output obj * refactor(modal): change inner component getter * feat(modal): add BsModalRef and docs * feat(modal): remove data-attributes, return BsModalRef, update docs * feat(modal): add docs for BsModalService, BsModalRef, update demo * feat(modal): add bs4 support * feat(modal): keep focus inside a modal * chore(modals): small refactoring (#2128) * chore(modals): simplify service (#2130) * chore(modal): view container ref made optional for component loader (#2133) * fix(modal): fix backdrop flickering * fix(modal): fix backdrop click on the left/right sides, add class option * feat(modals): nested modals wip * fix(modal): fix multiple hide() call * fix(modal): fix multiple backdrop clicks, fix padding * fix(modal): fixed padding * fix(modal): fix page flickering * feat(modal): add isAnimated support, add service section to demo * fix(test): fix popover and tyepahead unit tests
@valorkin @IlyaSurmay Awesome! Which version will this be in and when will it be out? Thanks! :D |
@valorkin that's great, thank you! :) @IlyaSurmay great work! Thanks! |
I'm sorry if this has been answered already, I did search but couldn't find it...
I'm trying to migrate from
ng-bootstrap
, but I just hit a road block...Using
ng-bootstrap
I was able to retrieve my modal's instance by:Where
this.config.createModal
is my custom modal component.I couldn't find in the docs (specially in the demos) something similar for
ng2-bootstrap
.Could anyone shed some light here? Is it possible? If so, how can I do this? If not, are there any workarounds?
Thank you.
The text was updated successfully, but these errors were encountered: