<!-- public/index.html -->
<!DOCTYPE html>
<html lang="pt-br" ng-app="alurapic">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>Alurapic</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<script src="js/lib/angular.min.js"></script>
<script src="js/main.js"></script>
<script src="js/controllers/fotos-controller.js"></script>
</head>
<body ng-controller="FotosController">
<div class="container">
<div class="jumbotron">
<h1 class="text-center">Alurapic</h1>
</div>
<div class="row">
<div class="panel panel-default col-md-2" ng-repeat="foto in fotos">
<div class="panel-heading">
<h3 class="panel-title text-center">{{foto.titulo}}</h3>
</div>
<div class="panel-body">
<img class="img-responsive center-block" src="{{foto.url}}">
</div><!-- fim panel-body -->
</div><!-- fim panel panel-default -->
</div><!-- fim row -->
</div><!-- fim container -->
</body>
</html>
angular.module('aluraoc').controller('fotos-controller',function($scope,$http){
$scope.fotos = [];
$http.get('v1/fotos')
.sucess(function(retorno){
console.log(retorno);
$scope.fotos = retorno;
})
.error(function(erro){
console.log(erro);
})
não está puxando as fotos e não está gerando os containers. E sim o servidor está rodando normalmente.