I'm experiencing an issue with my Angular controller where the code inside its constructor is not running. Here's a snippet of the relevant pieces:
conversationcontrollers.js:
var exampleApp = angular.module('exampleApp',[]);
console.log('file loaded');
exampleApp.controller('ConversationController', ['$scope',
function($scope) {
console.log('controller constructor loads');
}
]);
conversation.html:
...
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<script src='/static/js/conversationcontrollers.js'></script>
...
<div ng-controller="ConversationController">
</div>
...
Although both files are loading correctly in the browser, the only output in the console is:
file loaded
Any assistance would be greatly appreciated.