How to use angular two way binding tag in spring boot Thymeleaf

Viewed 451

I have my image defined in json file as below

certLogoURL : "/img/ocjp.gif"

I am trying to display this in my thymeleaf template as

<img th:src="@{ {{certificate.certLogoURL}} }" > </img>

Image is not getting displayed in my webpage.

When I inspect the webpage it gets converted into

<img src="/img/ocjp.gif">

If I hard-coded the value as

<img th:src="@{/img/ocjp.gif}"> </img>

Image is getting displayed properly.

Could you please assist me on this?

1 Answers
Related