Modal is not opening even with "ngbModalContainer"
See original GitHub issuealpha-6
I’m using Your modal example. I have <template ngbModalContainer></template>
in html but still I have Missing modal container, add <template ngbModalContainer></template> to one of your application templates.
error.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Angular + ng-bootstrap - Modal : window does not open
As described in ng-bootstrap NgbModal "A service to open modal windows" and it has no properties to open modal window in new browser...
Read more >Modal - Angular powered Bootstrap
First focusable element within the modal window will receive focus upon opening. This could be configured to focus any other element by adding...
Read more >How to create a reusable Modal component in Angular 9 ...
The controller gets the template of the modal and opens it using the NgbModal service and then uses the NgbModalRef obtained to close...
Read more >Modal Options - W3Schools Tryit Editor
<p>The backdrop option specifies whether the modal should have a dark overlay (the background color of the current page) or not.</p>
Read more >Modal · Bootstrap v5.1
Toggle a working modal demo by clicking the button below. ... When backdrop is set to static, the modal will not close when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got a fix. I was importing NgbModule in different / wrong module. Make sure you import it in module where you’ve declared the components (in which you’re using modals, etc) OR SAY import in the parent i.e., AppModule
Cheers, 9
@piernik I had the same ‘issue’ whereas the modal wouldnt open even with the template directive present. My problem was I was missing the entryComponents array in my module that listed the content component. Adding my content in this array fixed the issue. This may or may not be your issue as well.