I am currently migrating from user environment to Angular. Since we have a legacy, all front-end resources, such as stylescheets, images, and scripts, must be located on a subdomain, and all URLs must be absolute. I have a bunch of css files with a parameter defining our static domain. I am looking for a native Angular approach to using parameters in css, so I can write smth like:
.body {background: "{{domain}}/img/bg.png";}
Currently, in our structure, styles are loaded, say, $ http.get (), then processed with .replace, and then added to the DOM.
Any ideas?
Thanks.
source share