Pregunta

I am making a http request that returns a url to an image. I would like to display the image in my html page. Is there a way to do this? I idea of what I want to do is (this doesn't work but..) img src={{result.imageurl}}

¿Fue útil?

Solución

Yes, you have to use ng-src="{{result.imageurl}}"

See http://docs.angularjs.org/api/ng.directive:ngSrc

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top