SyntaxFix
Write A Post
Hire A Developer
Questions
It's also possible to do something like this with ng-style:
ng-style
ng-style="image_path != '' && {'background-image':'url('+image_path+')'}"
which would not attempt to fetch a non-existing image.