Encontrei a thread abaixo que já se encontra solucionada...
https://cursos.alura.com.br/forum/topico-meu-controller-deixa-de-funcionar-ao-adicionar-o-array-no-parametro-68151
Executei o procedimento proposto na solução, mas mesmo assim não funcionou:
Procedimento:
angular.module('alurapic').controller('CadastroFotoController',
[
'$scope', 'recursoFoto', '$routeParams', 'cadastroDeFotos',
function($scope, recurso_Foto, $routeParams, cadastroFotos) {
... código omitido ...
}
]
);
Erro:
Error: [$injector:unpr] http://errors.angularjs.org/1.3.15/$injector/unpr?p0=cadastroDeFotosProvider%20%3C-%20cadastroDeFotos%20%3C-%20CadastroFotoController
at http://localhost:3000/js/lib/angular.min.js:6:417
at http://localhost:3000/js/lib/angular.min.js:38:7
at Object.d [as get] (http://localhost:3000/js/lib/angular.min.js:36:13)
at http://localhost:3000/js/lib/angular.min.js:38:81
at d (http://localhost:3000/js/lib/angular.min.js:36:13)
at e (http://localhost:3000/js/lib/angular.min.js:36:283)
at Object.instantiate (http://localhost:3000/js/lib/angular.min.js:36:432)
at http://localhost:3000/js/lib/angular.min.js:76:49
at link (http://localhost:3000/js/lib/angular-route.min.js:7:268)
at $ (http://localhost:3000/js/lib/angular.min.js:70:197) <ng-view class="ng-scope">
(anonymous) @ angular.js:11655
(anonymous) @ angular.js:8596
$ @ angular.js:8260
B @ angular.js:7768
g @ angular.js:7117
(anonymous) @ angular.js:6996
(anonymous) @ angular.js:7135
k @ angular.js:7795
x @ angular-route.js:933
$broadcast @ angular.js:14785
(anonymous) @ angular-route.js:616
(anonymous) @ angular.js:13248
$eval @ angular.js:14466
$digest @ angular.js:14282
$apply @ angular.js:14571
l @ angular.js:9698
M @ angular.js:9888
F.onload @ angular.js:9829
load (async)
(anonymous) @ angular.js:9812
n @ angular.js:9667
f @ angular.js:9383
(anonymous) @ angular.js:13248
$eval @ angular.js:14466
$digest @ angular.js:14282
$apply @ angular.js:14571
(anonymous) @ angular.js:1455
e @ angular.js:4203
d @ angular.js:1453
uc @ angular.js:1473
Jd @ angular.js:1367
(anonymous) @ angular.js:26304
a @ angular.js:2762
c @ angular.js:3032
Abaixo minha versão do npm:
\Bispo\Alura\curso_alurapic>npm version
{ alurapic: '1.0.0',
npm: '6.9.0',
ares: '1.15.0',
brotli: '1.0.7',
cldr: '35.1',
http_parser: '2.8.0',
icu: '64.2',
modules: '64',
napi: '4',
nghttp2: '1.34.0',
node: '10.16.0',
openssl: '1.1.1b',
tz: '2019a',
unicode: '12.1',
uv: '1.28.0',
v8: '6.8.275.32-node.52',
zlib: '1.2.11' }