Abaixo segue o código exatamente iguais ao do exercício e o Erro que aparece no console
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">
<h1 class="text-center">Alurapic</h1>
<img class="img-responsive center-block" src="{{foto.url}}" alt="{{foto.titulo}}">
</div><!-- fim container -->
</body>
</html>
main.js
angular.module('alurapic',[]);
fotos-controller.js
angular.module('alurapic').controller('FotosController',function($scope){
$scope.foto={
titulo: 'Leão',
url:'http://www.fundosanimais.com/Minis/leoes.jpg'
};
});
Erro :
Uncaught SyntaxError: Unexpected token < angular.min.js:21 Uncaught Error: [$injector:nomod] http://errors.angularjs.org/1.3.15/$injector/nomod?p0=alurapic at angular.min.js:6 at angular.min.js:21 at a (angular.min.js:21) at Object.module (angular.min.js:21) at fotos-controller.js:1 angular.min.js:35 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=alurapic&p1=Error%…uc%20(http%3A%2F%2Flocalhost%3A3000%2Fjs%2Flib%2Fangular.min.js%3A18%3A179) at angular.min.js:6 at angular.min.js:35 at r (angular.min.js:7) at g (angular.min.js:34) at ab (angular.min.js:38) at d (angular.min.js:17) at uc (angular.min.js:18) at Jd (angular.min.js:17) at angular.min.js:250 at HTMLDocument.a (angular.min.js:164)