Cannot use components as content for modals in lazy loaded modules

Bug description:

The feature to open components as content for modals does not work in lazy loaded modules.
The plunker below throws the error: No component factory found for NgbdModalContent

Link to minimally-working plunker that reproduces the issue:

http://plnkr.co/edit/O8bkySFwvCS1zt9emQSV?p=preview

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: 2.1.0

ng-bootstrap: 1.0.0-alpha.9

Bootstrap: 4.0.0-alpha.4

1 possible answer(s) on “Cannot use components as content for modals in lazy loaded modules