Coding task · Angular course · Module 6: Signals
Practice: effect()
For actions outside Angular (logging, localStorage, requests) there is a function that runs your code at once and again after every change of the signals read inside it. It must be called in an injection context, e.g. in the constructor.
Task
Complete the component so that it saves the theme to localStorage every time it changes.