B
B
beduin012015-11-11 14:48:35
Angular
beduin01, 2015-11-11 14:48:35

What causes an error in AngularJS?

I think it's easier to show a screenshot than to give code examples here:
img.ctrlv.in/img/15/11/11/56432a9cdca91.png A
question along the way. If I link the main AngularJS library in app.js, should I include it in all other submodules?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Dunayevsky, 2015-11-11
@beduin01

Obviously, your file is called questions.js .
The first line is <script src="...
The interpreter tries to execute it and crashes.
Include scripts and libraries in html files, not in JS. In the case of Angular, forget about AMD, or consider switching to Dojo or Aurelia.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question