I am trying to use a controller that I wrote and saved in a controller.js file, but it won't work in my html code. I have the code written as:
< div ng-app="myApp" ng=controller="movieCtrl">
..bit of my html code..
< /div>
< script src="controller.js">
But that doesn't work correctly, although it works if I just put the code for the controller inside the script tags instead of just putting the src="controller.js". How do I get it to work with that?
