Id like to display dynamic background images using angular's ng-repeat directive.
At the moment Im doing this by setting it as an inline style like so:
<div ng-repeat="thing in things"
style="background-image: url({{thing.image}})" >
</div
I would prefer to use standard angular tools to accomplish this and avoid using inline styles. I would set a static background image using ng-style but this does not seem practical for an indeterminate number of objects.
What is the correct solution for something like this?
<div ng-repeat="thing in things" ng-style="{'background-image':'url(thing.image)'}" > </div