I have a _color.scss file. I have a $primaryImageURL which stores the location of an image. Is it possible to update this variable from an Angular Service. I fetch the location details from a get call from my angular service. An image gets uploaded from another service and Am trying to update the location of the primary image dynamically.
// _color.scss
$primaryImageURL = 'src/assets/img/primaryImage.png';
//Service
someService.getPrimaryColor().subscribe(data => {
const brandingImg = data.brandImgUrl;
// Need to update $primaryImageURL here dynamically.
});
Thanks in Advance.