A
A
ayapergenov2016-01-26 06:46:04
Angular
ayapergenov, 2016-01-26 06:46:04

How to detect link connection error via ng-include?

I'm using this assembly
. When files are included using ng-include, the contents of the files do not come.
Firebug comes with code like this.

<div class="page">
      <h1>Angular + Gulp</h1>
      <hr>
      <ui-view></ui-view>
      <div ng-include="'./components/header.html'"></div>
    </div>

How to determine the reason that the content from the header file is not displayed?
The screenshot shows the structure of the project.
c49cb7ffb6344d34a8205b734770e284.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Skrolea, 2016-01-26
@ayapergenov

Так у вас проблема в подключении модуля "Module 'app.demoComponent' is not available!"

A
ayapergenov, 2016-01-26
@ayapergenov

Through the console, Chrome shows the following error
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...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question