Counter
A counter with increment, decrement and reset buttons, plus a label derived from the count. Look here for computed() and the UI components in a small app.
What it shows
signal()andcomputed()—labelrecomputes whenevercountchanges. See Signals and change detection.update()andset()— the handlers change state, and Angular re-renders after each one.- UI components — Button and Card from the UI components. A button reports taps through its
(pressed)output. - Flex layout — the button row sets
display: flexwith theflex flex-rowclasses. Without it, Lynx stacks children vertically. See CSS on Lynx.
