This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13106|Reply: 0

[Angular] component factory found for xxxComponent. Did you add it to @NgModule...

[Copy link]
Posted on 6/6/2019 1:21:47 PM | | | |
component factory found for xxxComponent. Did you add it to @NgModule.entryComponents?
    at noComponentFactoryError
Angular requires a component to be declared in the @NgModule's entryComponents when loading dynamic components. Otherwise, an error similar to the following will be reported:


Declare the component in the @NgModule's entryComponents:



In this example, DialogComponent is a pop-up component that loads dynamically.






Previous:Debugging. NET Core Web Applications
Next:I love cracking why 52pojie suddenly shut down the website
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com