EDIT: TIL that you don't need to add the url in the scope. Also, to be careful with the key, thanks.
I'm trying to show some images and its names in an HTML5 doc, here's the index:
<div ng-repeat="producto in productos">
<figure class="floating">
<img ng-src="{{ image }}" alt="Macaque in the trees" class="rcorners3" style='width:100%;' border="0" alt="Null">
<figcaption>{{ name }}</figcaption>
</figure>
</div>
At the top I have:
<body ng-app="app">
<div class="main" ng-controller="app">
And this is how the MainController.js looks like:
app.controller('app', ['$scope', function ($scope) {
$scope.productos = [{
name : 'Management Guides',
image : url('managemant-guides.jpg')
}, {
name : 'Leaflets',
image : url('managemant-guides.jpg')
}, {
name : 'Production Charts',
image : url('managemant-guides.jpg')
}, {
name : 'Technical Guides',
image : url('managemant-guides.jpg')
}, {
name : 'Poultry News',
image : url('managemant-guides.jpg')
}
];
}]);
I tihnk I'm failing at the ng-src point, not