Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Multiple Angular Material <router-outlet> definitions not working

Harris free asked 4 years ago


Hi,

I am having a problem when using multiple definitions. It involves the use of a Sidbar (with Navigation). When clicking on the item on the Menu, it does not work. Additionally, I am not getting any error in the Console.

I posted the problem on Stackoverflow as well.

https://stackoverflow.com/questions/60296385/use-of-multiple-router-outlet-under-angular-material-8-is-not-working?noredirect=1#comment106657353_60296385

Any hints on how to resolve the problem are appreciated.

TIA


Arkadiusz Idzikowski staff commented 4 years ago

Can you prepare a simple demo (2-3 routes) on which we will be able to debug this problem and send it to a.idzikowski@mdbootstrap.com? It's hard to say what exactly is not working without seeing the app modules configuration.

If you use Angular 8 you should switch to this syntax for lazy loading modules:

loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule)


Harris free commented 4 years ago

Again, figured it out on my own (see Stackflow message). Can you close this message here? TIA


appresearcher free commented 4 years ago

You are correct that this is a issue using these tools. I ran into the same issue. I ended up just using one router for everything, which was a bummer. good luck!


appresearcher free commented 4 years ago

You are correct that this is a issue using these tools. I ran into the same issue. I ended up just using one router for everything, which was a bummer. good luck!


Harris free answered 4 years ago


Thanks, I figured it out myself (see message on Stackoverflow). Having a hard time closing this message. Mods, can you close? Thanks!


Harris free commented 4 years ago

Hi again - trying to close this message (since I figured it out - see message on Stackoverflow). Not able to close msg. Mods, can you pls close? Thanks!


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10 64-bit
  • Provided sample code: No
  • Provided link: Yes