Dynamic background image

i want use color and dynamic image for background page
i found this code :
background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 1.48%, rgba(3, 62, 119, 0.68) 12.52%, rgb(105, 22, 130) 89.52%),url(“image adress”);

that can use in scss but i need online dynamic image, like using feature image of post as background image

please guide me


I would use a div, put it with css behind all other elements, and use ngstyle, ngclass, etc for dynamic styling of css background property.

If you need it more then one time, then put the div in a custom component.

Best regards, anna-liebt