docs: use self-closing tag

Aligns template syntax with modern Angular recommendations and improves readability.

(cherry picked from commit 12afc1d164)
This commit is contained in:
Shuaib Hasan Akib
2026-02-06 08:13:15 +06:00
committed by Andrew Kushnir
parent be4ffb68eb
commit 8b4c213cd3
7 changed files with 7 additions and 8 deletions
@@ -13,6 +13,5 @@
</label>
<!-- The user of the progressbar sets an aria-label to communicate what the progress means. -->
<app-example-progressbar [value]="progress" aria-label="Example of a progress bar">
</app-example-progressbar>
<app-example-progressbar [value]="progress" aria-label="Example of a progress bar" />
<!-- #enddocregion template -->
@@ -8,7 +8,7 @@ import {HeroListAuto} from './hero-list-auto';
<section>
<h2>Automatic Calculation</h2>
<app-hero-list-auto [heroes]="heroes" (remove)="onRemove($event)"></app-hero-list-auto>
<app-hero-list-auto [heroes]="heroes" (remove)="onRemove($event)" />
</section>
`,
imports: [HeroListAuto],
@@ -8,7 +8,7 @@ import {HeroListGroups} from './hero-list-groups';
<section>
<h2>Hero List Group</h2>
<app-hero-list-groups [heroes]="heroes" (remove)="onRemove($event)"></app-hero-list-groups>
<app-hero-list-groups [heroes]="heroes" (remove)="onRemove($event)" />
</section>
`,
imports: [HeroListGroups],
@@ -9,7 +9,7 @@ import {OpenClose} from './open-close';
<input type="checkbox" id="log-checkbox" [checked]="logging" (click)="toggleLogging()" />
<label for="log-checkbox">Console Log Animation Events</label>
<app-open-close [logging]="logging"></app-open-close>
<app-open-close [logging]="logging" />
</section>
`,
imports: [OpenClose],
@@ -6,7 +6,7 @@ import {StatusSlider} from './status-slider';
template: `
<section>
<h2>Status Slider</h2>
<app-status-slider></app-status-slider>
<app-status-slider />
</section>
`,
imports: [StatusSlider],
@@ -7,7 +7,7 @@ import {OpenCloseChild} from './open-close.4';
<section>
<h2>Toggle Animations</h2>
<app-open-close-toggle></app-open-close-toggle>
<app-open-close-toggle />
</section>
`,
imports: [OpenCloseChild],
@@ -40,7 +40,7 @@ import {Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
@Component({
...,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
template: '<some-unknown-component></some-unknown-component>'
template: '<some-unknown-component />'
})
export class ComponentWithCustomElements { }
```