Files
test-repo/changelog_unreleased/angular/19431.md
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
649 B
Markdown
Raw Normal View History

2026-06-23 20:01:45 +08:00
#### Support `@content` block (#19431 by @fisker)
<!-- prettier-ignore -->
```html
<!-- Input -->
<FancyButton [label]="title">
@content(icon) {
<span>Icon</span>
}
@content(description) {
<span>Description text</span>
}
<span>Other children</span>
</FancyButton>
<!-- Prettier stable -->
SyntaxError: Unexpected character "EOF" (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.) (9:15)
<!-- Prettier main -->
<FancyButton [label]="title">
@content(icon) {
<span>Icon!</span>
}
@content(description) {
<span>Description text</span>
}
<span>Other children</span>
</FancyButton>
```