Self-Closing Component Tags

Self-Closing Component Tags

As of Angular version 15.1, it is possible to use in templates self-closing tags for our components.
Note that it's available only for components without projected content.

So now we can use this:

<my-component [attribute]="attr"/>

instead of this:

<my-component [attribute]="attr"></my-component>

And that's it for now.