I am having a problem with Angular JS receiving an error : Uncaught Error: [$injector:modulerr]. My JS-file looks
angular.module(\'MyApp\', [\'ngRoute\']);
I had exactly the same problem and what resolved it was to remove the closure:
$(function(){ var app = angular.module("myApp", []); app.controller('myController', function(){ ... }); });
becomes:
var app = angular.module("myApp", []); app.controller('myController', function(){ ... });