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 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.
