M
M
MLika2017-01-24 17:50:06
JavaScript
MLika, 2017-01-24 17:50:06

How to correctly display data in a view in angular?

You need to add images to the background. I insert it like this:

style="background: url({{ItemBG}}) no-repeat center bottom;"

Everything is fine when the picture has a normal url, if the picture url contains special characters, then the picture is not displayed. It helps if you add single quotes. So: how in my case to add single quotes around the picture? Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2017-01-24
@MLika

hmm... something like this:

style="background: url('{{ItemBG}}') no-repeat center bottom;"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question