I\'m trying to get my head around AngularJS and ran into a problem.
var myApp = angular.module(\'myApp\', [\'myApp.services\']);
myApp.config([\'$routeP
It seems that the method I used for defining the service was overriding my myApp
module.
This is the overriding line
angular.module('myApp', function ($provide) ...
This code simply redefines the myApp
module and adds a function to configure that one.
I refactored service.js to this simplified version and it started to work.
var myApp = angular.module('myApp');
myApp.factory('securityService', function () {
return SomeFancyServiceObject();
});