I am having a problem with Angular JS receiving an error : Uncaught Error: [$injector:modulerr]. My JS-file looks
angular.module(\'MyApp\', [\'ngRoute\']);
Make sure you're function is wrapped in a closure, complete with the extra () at the end:
(function(){ var app = angular.module('myApp', []); })();