You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 loop let image of images? My images is an array of image url strings.
I can get images to at least display if I use this instead:
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?
The text was updated successfully, but these errors were encountered: