When adding Angular examples (docs, snippets, templates), ensure they are both syntactically/semantically valid and shown in the correct template context.
Key rules:
count()), rather than using the signal object directly.@if usage in an Angular template/HTML context (not in TS/logic examples), using valid template syntax.Example (template context):
<div class="user-container">
@if (count() === 1) {
<b>Count is 1</b>
} @else {
<b>Count is not 1</b>
}
</div>
(And ensure count is a signal defined in the component, e.g., const count = signal(0);.)
Enter the URL of a public GitHub repository