Skip to content

Angular Router Custom Preload. #3

@hugoebarboza

Description

@hugoebarboza

Hi, I followed the post about "Angular Router Custom Preloading Strategy", but I have a question.

May I use preload with a canLoad route ?

For example:
{
path: 'activity',
canLoad: [ LoginGuardGuard ],
loadChildren : () => import('./pages/activity/activity.module').then(m => m.ActivityModule),
data: { preload: true }
}

Sincerely,
Hugo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions