Skip to content

Angular ngIf deprecation #1654

@ManuelMoeri

Description

@ManuelMoeri

Angular likes to update their syntax a lot. This can lead to a overwhelming amount of deprecations. The *ngIf condition is one of the many that is effected by this preference of Angular.

Since Angular 20 the *ngIf condition is deprecated in favor of the @if block. When searching over the whole OKR you'll quickly find out that the *ngIf is used more than 100 times.

Sadly simply replacing the *ngIf's with the @if block will not do the job. I already mentioned that prior is a conditional and the other one is a block. Which means it will take some extra effort to fully migrate this. There is a official migration for this but I don't know how effective it'll be.

Requirements

  • Every instance of ´*ngIf´ is replaced
  • Everything still works as before

Metadata

Metadata

Assignees

No one assigned

    Labels

    angularAngular is involved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions