I'm using the more verbose syntax to define modules and the app. I have blank HTML page that pulls in angular.js and then this file (app.js), and I get the error
Uncaught Error: Argument 'fn' is not a function, got string from testapp.
Do I have a typo, or misunderstand the parameters. Not sure what I am doing wrong.
file: app.js
angular.module('testappmon', []);
angular.module('testapp.controllers', []);
angular.module('testapp.services', []);
angular.module('testapp', ['testapp.controllers', 'testappmon', 'testapp.services'], function ($httpProvider) {
});
I'm using the more verbose syntax to define modules and the app. I have blank HTML page that pulls in angular.js and then this file (app.js), and I get the error
Uncaught Error: Argument 'fn' is not a function, got string from testapp.
Do I have a typo, or misunderstand the parameters. Not sure what I am doing wrong.
file: app.js
angular.module('testapp.mon', []);
angular.module('testapp.controllers', []);
angular.module('testapp.services', []);
angular.module('testapp', ['testapp.controllers', 'testapp.mon', 'testapp.services'], function ($httpProvider) {
});
This should some like this
angular.module('testapp.mon', []);
angular.module('testapp.controllers', []);
angular.module('testapp.services', []);
angular.module('testapp', ['testapp.controllers', 'testapp.mon', 'testapp.services'])
.config(['$routeProvider', '$httpProvider', function ($routeProvider, $httpProvider) {
}]);