Ich bin halten meine Konsole immer diese Ausnahme in:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.5/$injector/modulerr?p0=mainApp&p1=Error%3A…at%20g%20(http%3A%2F%2Flocalhost%2Fcinema%2Fjs%2Fangular.min.js%3A39%3A222)
........ angular.min.js:6
und die HTML-Datei:
<!DOCTYPE HTML>
<html ng-app="mainApp">
<head>
<title>This cinema...</title>
<!-- ... other tags -->
<script src="js/angular.min.js"></script>
<script>
var mainApp = angular.module('mainApp', []);
mainApp.config(function ($routeProvider) {
});
</script>
<!-- REST of the HTML body, but no angular used below -->
Wenn ich Entfernen Sie die mainApp.config(func....
dann funktioniert es. Ich weiß nicht, wie man Routen einrichtet. Eine leere Funktion bei einem Routenanbieter erzeugt die Ausnahme?
Sie nicht das 'Winkel routing.js' Skriptverweis enthalten sind, noch haben Sie injizierten' ngRoute' in Ihre 'mainApp' Modul . – Lex