Provide title and the already formatted value. change is display text, not a computed percentage. trend adds an up, down or neutral indicator. label adds context; projected content appears in the footer. icon resolves an application icon. Use explicit wording to explain whether a rising or falling metric is desirable.
The application formats values and calculates changes. StatsCard has no Outputs, models or number-formatting API. Buttons in projected content handle their own events.
Give every metric a visible title and explain its comparison period. Trend icons are decorative; change text and context communicate the result. The card itself is not a button. Project a real link or button for details.
Key
Action
โ
Give every metric a visible title and explain its comparison period. Trend icons are decorative; change text and context communicate the result. The card itself is not a button. Project a real link or button for details.
up, down or neutral direction; explain the meaning with text.
value
string
''
[value]
Already formatted value displayed as text.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.