All I have is an html file with the following very simple code:
The event scope variable is defined in the EventController file as so:
eventsApp is a module defined in app.js as so:
name: 'Angular Boot Camp',
time: '10:30 am'
As you can see, really simple stuff! But when I run it in the browser I get the following error in the console:
var eventsApp = angular.module('eventsApp', );
Uncaught TypeError: undefined is not a function
I get this in the controller file right at the call to the controller() function:
What I've tried so far
1) Removing the app.js file. Removing it gives me the error that eventsApp is undefined in EventController.js. So clearly, app.js is being recognized alright.
2) Removing the angular library, which gives me the error that there is no defined function called "controller"
3) Removing the jquery, underscore and bootstrap files, which changes nothing
4) I thought at first that eventsApp wasn't a real variable, (debunked by (1) ), so I tried putting this only in the EventController.js file:
This generated no error at all.