@ayapergenov

Как определить ошибку подключения ссылки через ng-include?

Использую вот эту сборку
При подключении файлов с помощью ng-include не приходит содержимое файлов.
В firebug идет такой код.
<div class="page">
      <h1>Angular + Gulp</h1>
      <hr>
      <ui-view></ui-view>
      <div ng-include="'./components/header.html'"></div>
    </div>

Как определить причину того, что содержание из файла header не отображается?
На скриншоте структура проекта.
c49cb7ffb6344d34a8205b734770e284.png
  • Вопрос задан
  • 745 просмотров
Решения вопроса 1
@Skrolea
Так у вас проблема в подключении модуля "Module 'app.demoComponent' is not available!"
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@ayapergenov Автор вопроса
Через консоль Chrome показывает такую ошибку
Uncaught Error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:modulerr] Failed to instantiate module app.demoComponent due to:
Error: [$injector:nomod] Module 'app.demoComponent' 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.
errors.angularjs.org/1.4.7/$injector/nomod?p0=app....
at localhost:8000/bower_components/angular.js:68:12
at localhost:8000/bower_components/angular.js:1986:17
at ensure (localhost:8000/bower_components/angular.js:1910:38)
at module (localhost:8000/bower_components/angular.js:1984:14)
at localhost:8000/bower_components/angular.js:4390:22
at forEach (localhost:8000/bower_components/angular.js:336:20)
at loadModules (localhost:8000/bower_components/angular.js:4374:5)
at localhost:8000/bower_components/angular.js:4391:40
at forEach (localhost:8000/bower_components/angular.js:336:20)
at loadModules (localhost:8000/bower_components/angular.js:4374:5)
http://errors.angularjs.org/1.4.7/$injector/module...
at localhost:8000/bower_components/angular.js:68:12
at localhost:8000/bower_components/angular.js:4413:15
at forEach (localhost:8000/bower_components/angular.js:336:20)
at loadModules (localhost:8000/bower_components/angular.js:4374:5)
at localhost:8000/bower_components/angular.js:4391:40
at forEach (localhost:8000/bower_components/angular.js:336:20)
at loadModules (localhost:8000/bower_components/angular.js:4374:5)
at createInjector (localhost:8000/bower_components/angular.js:4299:11)
at doBootstrap (localhost:8000/bower_components/angular.js:1657:20)
at bootstrap (localhost:8000/bower_components/angular.js:1678:12)
http://errors.angularjs.org/1.4.7/$injector/module...
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы