When trying to implement the Modal using a component like the example here “Components as content”
It works like so.
However I want to also use that component outside of a modal, but when I try to access that component using its selector I get the error:
“Unhandled Promise rejection: No provider for NgbActiveModal! ; Zone: ; Task: Promise.then ; Value: Error: No provider for NgbActiveModal!”
Link to minimally-working plunker that reproduces the issue:
You’ll see in the console as soon as the app loads, it will throw the error.
Version of Angular, ng-bootstrap, and Bootstrap: