My project is built on angular 4, and I am looking to change the background color of the <body>
tag using the component's .ts file when a specific element is clicked.
The issue I'm facing is that once the color is changed to blue, it persists even when clicking on other components. I want the blue color to be removed whenever any other component is clicked, so that only the selected elements trigger the change in background color.