about angular routes issue

Discussão em 'Angular' iniciado por samrtian, Dezembro 2, 2024.

  1. samrtian

    samrtian Guest

    {
    path: '',
    canActivate: [GuardGuard],
    canDeactivate: [GuardGuard],
    loadChildren: () =>
    import('@local/app/pages/home/home.module').then(m => m.HomeModule)
    .catch(() =>
    import('@shared/app/pages/home/home.module').then(m => m.HomeModule)
    )
    }


    when it's not able to find @local/app/pages/home/home.module

    it will instead use @shared/app/pages/home/home.module

    but the code above is not supposed to be written this way, I'm just showing you my logic.

    Continue reading...

Compartilhe esta Página