This is the code that I am using to get images:
<img ng-src="{{url}}{{product.image}}" class="product-image">
But it wont fetch the image.
it only gets the file path but not the product image name.
This is the code that I am using to get images:
<img ng-src="{{url}}{{product.image}}" class="product-image">
But it wont fetch the image.
it only gets the file path but not the product image name.
The correct syntax should be
<img ng-src="{{url + product.image}}" class="product-image">
I think you are missing the "/" with url/image try with src instead of ng-src
<img src="{{url}}/{{product.image}}" class="product-image">
Do you tryed to show in console the result of the variables url and product.image?
console.log(url + product.image);
The value is correct?