Self-closing tags são suportadas em templates Angular desde a v16.
Este schematic migra os templates em sua aplicação para usar self-closing tags.
Execute o schematic usando o seguinte comando:
ng generate @angular/core:self-closing-tag
Antes
<hello-world></hello-world>
Depois
<hello-world />