Skip to content
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

fix(modal): provide NgbModal at the correct level #4464

Merged

Conversation

maxokorokov
Copy link
Member

Provides NgbModal at the NgbModalModule level as well as at the 'root' level. Provides environment injector based on the contentInjector and not the appRef.injector when using component as modal content.

Fixes #4447

Provides `NgbModal` at the `NgbModalModule` level as well as at the 'root' level.
Provides environment injector based on the `contentInjector` and not the `appRef.injector` when using component as modal content.

Fixes ng-bootstrap#4447
@maxokorokov maxokorokov added this to the 14.0.1 milestone Jan 9, 2023
@codecov-commenter
Copy link

Codecov Report

Base: 88.66% // Head: 88.68% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (9de2580) compared to base (379dae2).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4464      +/-   ##
==========================================
+ Coverage   88.66%   88.68%   +0.01%     
==========================================
  Files         114      114              
  Lines        3998     4003       +5     
  Branches      843      844       +1     
==========================================
+ Hits         3545     3550       +5     
  Misses        413      413              
  Partials       40       40              
Flag Coverage Δ
e2e 54.52% <ø> (+<0.01%) ⬆️
unit 89.11% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/popover/popover.ts 95.12% <0.00%> (ø)
src/tooltip/tooltip.ts 98.57% <0.00%> (ø)
src/util/positioning.ts 100.00% <0.00%> (ø)
src/dropdown/dropdown.ts 91.42% <0.00%> (ø)
src/modal/modal.module.ts 100.00% <0.00%> (ø)
src/typeahead/typeahead.ts 96.35% <0.00%> (ø)
src/datepicker/datepicker.ts 97.97% <0.00%> (ø)
src/datepicker/datepicker-input.ts 95.51% <0.00%> (ø)
src/modal/modal-stack.ts 96.92% <0.00%> (+0.07%) ⬆️
src/accordion/accordion.ts 79.36% <0.00%> (+0.16%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@maxokorokov maxokorokov merged commit 8ac01c2 into ng-bootstrap:master Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: modal components don't have the correct injector
2 participants