Open smlombardi opened 6 years ago
<div class="thumbnail-image" [ngStyle]="{'background': 'url(' + abc.jpg + ')no-repeat scroll center center / 80px 80px'}">
[<div class="thumbnail-image" [ngStyle]="{'background':
'url(' + abc.jpg + ')no-repeatscroll center center / 80px 80px'}"></div>]
Using the documentation example:
<div class="thumbnail-image" [ngStyle]="{'background': 'url('abc.jpg')no-repeat scroll center center / 80px 80px'}"></div>
Throws a compile error:
Parser Error: Missing expected } at column 22 in [{'background': 'url('abc.jpg')no-repeat scroll center center / 80px 80px'}]
I've tried every combination of background, using a simple
background: red
compiles.Also, what's with the
abc.jpg
? How to use the image in the looplet image of images
? Myimages
is an array of image url strings.I can get images to at least display if I use this instead:
But this doesn't seem to be the way it's designed?