Hi, I am new to angular js, the application I'm working on uses it. But I came across a problem ... (I mainly do html / css) by adding images to the markup in the usual way that they don't display:
<img src="image/source/image.png"/>
So, I did the following in the controller file:
subscriptionControllers.controller('imagesController', function($scope) {
$scope.image = [{
src: 'image/source/image.png',
}];
});
then added to html:
<img ng-src="{{image}}"/>
But so far nothing appears.
Any help with this is much appreciated, thanks!
EDIT:
Yes, the image exists, and the path is correct. When I look at the console, it shows the image as: image.png% 22% 7D] / Subscription / images
therefore, it adds% 22% 7D to the image. I do not know why, if I click on the link to the image in the console, it will lead me to page 404.
:
, , , : html/text , , ?