In a project I'm developing, I'm including the files:
app.js
angular.module('app', [
'app.controllers',
'app.services'
]
controller.js
angular.controller('HomeController', function($scope, HomeService)
{
// code
})
services.js
angular.service('HomeService', function()
{
// code
})
template.html
<html ng-app="app">
<head>
// scripts
</head>
<body ng-controller="HomeController">
// body
</body>
</html>
When I open the page, I find the error:
I searched in Google
and in the few searches I found where it was the same error I'm having, I could not find a solution for it. Some say that some module or something is missing, but as I have shown, everything is inserted and the names are correct.
What can I be doing wrong?