Closed Simobain closed 7 years ago
Hi @Simobain , try it in angular way. like, in template
ng-style="{'background-image': 'url(' + vm.cdnPath +'/' + destination.urlPictureCity+ ')'}"
in js
vm.cdnPath = someEnvVar === 'production' ? 'http://your/cdn/path' : '';
Thanks ! It should work. I made it by changing the css tag background-url by an img src.
Hi,
I have a, as showed below a ng-style attribute that changes dynamically a background-img.
Gulp-cdnify does not recognize it. What can I do ?
Thanks