Skip to content

Components with *ngIf are rendered before others #54783

@Mikosko

Description

@Mikosko

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

common, Don't known / other

Is this a regression?

Yes

Description

Currently, in our Angular application, components with *ngIf directives are being rendered before other components, leading to unexpected user experiences and potential functionality issues. This rendering inconsistency disrupts the intended flow of the application and can result in incorrect data presentation or functionality failures.

Components with *ngIf directives should be rendered in the correct order as specified by the application logic. They should only be rendered after the conditions defined in the *ngIf directive are met, ensuring the logical flow of the application remains intact.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-awfqji?file=src%2Fmain.ts

Please provide the exception or error you saw

No response

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

No response

Anything else?

Open console in example, where you get World Hello instead of Hello World.

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