简体   繁体   中英

Angular2. ng2-bootstrap in lazy loaded module needs app root module for some reason

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM