-2
я получаю сообщение об ошибке:
Uncaught Error: [$injector:modulerr] Failed to instantiate module msgsSystemDisplay due to: Error: [$injector:nomod] Module 'msgsSystemDisplay' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
, и я понятия не имею, почему, особенно когда другой модуль в другой js
и html
файлы работ совершенно нормально.
(function() {
var displayApp = angular.module('msgsSystemDisplay', []);
});
<!DOCTYPE html>
<html ng-app="msgsSystemDisplay">
<head lang="en">
<meta charset="UTF-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="http://code.angularjs.org/1.3.10/angular.js"></script>
<link rel='stylesheet' href='../stylesheets/index.css' />
<script src="../javascripts/displayApp.js"></script>
<title></title>
</head>
<body>
</body>
</html>
Как вы вам другие создание экземпляра модули/контроллеры? Точно так же: 'angular.module ('msgsSystemDisplay', []);' или это второй параметр массива, который не используется как: 'angular.module ('msgsSystemDisplay');'? – area28