2
votes

RC6. Using modal component from ng2-bootstrap. Was working fine until I separated the application into modules. Now in lazy loaded module when I try to call .show() method of the modal component I'm getting an error: No provider for AppComponent!

As you may guessed the AppComponent is my main/default component in the app root module. How does this modal thing even know about AppComponent existence?

Thanks!

1

1 Answers