In my project called App
, I have a controller, which contains a complex object that has a field referencing App/img/blue.jpg
:
myApp.controller("myController",function($scope){
$scope.message = "Home Page";
$scope.Photo1 = {
name: "blue_bird",
image:"/img/blue.jpg"
};
});
However the image is not loading when I do this:
<img src="{{Photo1.image}}" />
I also tried changing the image
field to img/blue.jpg
and ~/img/blue.jpg
, none works. When I change image
to a web link, though, it works