Migrations

Migration vers les balises auto-fermantes

Les balises auto-fermantes sont prises en charge dans les templates Angular depuis la v16.

Ce schematic migre les templates de votre application pour utiliser des balises auto-fermantes.

Lancez le schematic avec la commande suivante :

ng generate @angular/core:self-closing-tag

Avant

<hello-world></hello-world>

Après

<hello-world />