Thanks, Sander. I have a small hack in place where I just put every component I need in the entryComponents of the app component.
On Thu, Apr 13, 2017 at 11:21 PM Sander Elias <[email protected]> wrote: > Hi Tyler, > > You can't add components to your router that are unknown to angular. So, > if you want to add routes dynamically, you have to make sure, those > components are loaded before you create the route. > One can use lazy loading (outside of the router) to load them, before > creating the routes. > > As an alternative, you can add lazy loading routes to the router. But then > you are pulling in ngModules instead of components. > While I'm thinking on this, I'm not sure this would fly with the AOT > compiler, too bad I lack the time to try that right now ;) > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Angular and AngularJS discussion" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/L_S3c5CD6aY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
