Skip to content

Angular Router Custom Preload. #3

Open
@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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Angular Router Custom Preload. · Issue #3 · angular-university/angular-router-course