Skip to content

Regarding @defer block loading #68731

@princedinesh007

Description

@princedinesh007

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

I’m using the @defer block in Angular 21. I have 4 components imported into app.component.ts, and I’m trying to lazy-load one of them using @defer. However, even after refreshing the page, all deferred components are loaded. In this case, the @defer block is not working as expected. When I import the component into app.component.ts, it is already eagerly loaded, which I can see in the Network tab. Could you please help me fix this issue?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimegemini-triagedLabel noting that an issue has been triaged by geminineeds reproductionThis issue needs a reproduction in order for the team to investigate further

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions