The status panel shows whether the mode is enabled and how many times it has been toggled. The component works with signal, OnPush, and does not use template-driven forms or HTTP.
StatusPanelComponent component accepts the initialEnabled: boolean input.Toggle button and a text output of the state.enabled state must toggle, and the toggles counter must increase by 1.ChangeDetectionStrategy.OnPush.enabled=<true|false>; toggles=<number>.initialEnabled is false.Toggle button twice.After two clicks, it should be:
enabled=false; toggles=2
ChangeDetectionStrategy.OnPushprovideZoneChangeDetection({ eventCoalescing: true })Click a line and write what it prints. Explanation is optional.