src={{logo}}
var logo = 'localhost:3000/modules/images/default.png'
I am displaying the image path dynamicaly but its not showing path in html, Do i need to use quotes for src?Can anyone please help me.
src={{logo}}
var logo = 'localhost:3000/modules/images/default.png'
I am displaying the image path dynamicaly but its not showing path in html, Do i need to use quotes for src?Can anyone please help me.
Use ng-src
This gives you expected result, because phone.imageUrl is evaluated and replaced by its value after angular is loaded.
But with this, the browser tries to load an image named {{phone.imageUrl}}, which results in a failed request. You can check this in the console of your browser.