I'm trying to pass an URL image to my CSS from my html in Angular but I can't do that:
My CSS is :
card-profile_visual {
      height: $visual-height;
      overflow: hidden;
      position: relative;
      background: linear-gradient(to bottom, darken(#545559, 10%), saturate(darken(#3A4A7B, 2%), 20%), saturate(darken(#3A4A7B, 15%), 20%));
      &:before,
      &:after {
        display: block;
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 0;       
        background: url(myUrl) no-repeat center center/cover;
        opacity: 0.5;
        mix-blend-mode: lighten;
      }
    }
And my html is :
<div class="card-profile_visual" [style.background-image]="'url('+offer.photo_url+')'"></div>
How can I achieve this to pass offer.photo_url to CSS in :
background: url(myUrl) no-repeat center center/cover;
Thank you soo much
 
     
     
    