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!
Because of this hack to get root app component:
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.