Migration to self-closing tags
Self-closing tags are supported in Angular templates since v16. .
This schematic migrates the templates in your application to use self-closing tags.
Run the schematic using the following command:
shell
ng generate @angular/core:self-closing-tagBefore
html
<hello-world></hello-world>After
html
<hello-world />