Too bad you couldn't help. Thanks anyway for your time. On Thursday, September 29, 2016 at 8:21:57 PM UTC+2, Sander Elias wrote: > > Hi Andrea, > > As I have been out to Angularconnect I did miss your response, this is one > that will take me a bit more time, so I'm going to look at it when I'm back > home. If you don't hear back from my by next Monday, shoot me a message. > Otherwise, I might forget. This week has been a rollercoaster :) > > Regards > Sander > > On Tuesday, September 27, 2016 at 2:26:47 PM UTC+2, Andrea Bertoldo wrote: >> >> Hi Sander, >> >> sorry for the late reply. I've assembled this plunkr: >> http://plnkr.co/edit/6aV5n5K5wdqdiYo49lZv. It's the first time I use >> plunkr so I apologize if something's wrong (to me it's extremely slow... >> but it works). >> So, with regard to the plunkr: what I am currently able to do is load >> components dynamically and add them to the application (see tab "Dynamic >> Modules"). >> What I've also done is to use multiple named router-outlets, despite not >> finding any official documentation (see tab "Dynamic Routed"). Despite the >> tab name, routes are known ahead of time. >> >> What I want to do is: dynamically load a configuration (the dynamicRoutes >> array in the DynamicRoutesComponent) and only after create one >> router-outlet per dynamic route and use resetConfig (or what it takes) to >> have this configuration: >> { >> path: "dynamic-routed", >> component: DynamicRoutesComponent, >> children: [ >> { path: "", component: EmptyComponent }, >> { path: "component1", component: Component1, outlet: "component1" }, >> { path: "component2", component: Component2, outlet: "component2" } >> ] >> } >> with one child per dynamic route. >> >> Thanks in advance! >> >> On Friday, September 23, 2016 at 6:25:25 AM UTC+2, Sander Elias wrote: >>> >>> Hi Andrea, >>> >>> Do you have a sample project for this, so I can give it a spin? >>> I have read into this, and as far as I can tell, you should be able to >>> do a resetConfig in your module. I'm not sure though of that resets the >>> module's router or the complete router. >>> A simple way is to examine and adjust the routers configuration and use >>> the result of that in resetConfig. >>> >>> Regards >>> Sander >>> >>>
-- You received this message because you are subscribed to the Google Groups "Angular" 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.
