Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

index-async.html : Uncaught Error: No module: myApp #32

Closed
ladariha opened this issue Feb 8, 2013 · 5 comments
Closed

index-async.html : Uncaught Error: No module: myApp #32

ladariha opened this issue Feb 8, 2013 · 5 comments

Comments

@ladariha
Copy link

ladariha commented Feb 8, 2013

Running index-async.html throws this error:

Uncaught Error: No module: myApp index-async.html:30
(anonymous function) index-async.html:30
d index-async.html:30
(anonymous function) index-async.html:30
(anonymous function) angular.js:2699
forEach angular.js:110
loadModules angular.js:2695
createInjector angular.js:2637
bootstrap angular.js:927
(anonymous function) index-async.html:53
o index-async.html:41
e.onload.e.onerror.e.(anonymous function) index-async.html:41
@ladariha
Copy link
Author

ladariha commented Feb 8, 2013

Changing 'myApp' in

 angular.bootstrap(document, ['myApp']);

to phonecat throws

Uncaught Error: No module: ngResource

@atmartins
Copy link

To fix index-aync.html, change 'myApp' to 'phonecat' on line 40. Also, below line 32, add the following dependency:

'lib/angular/angular-resource.js',

While you're at it, include the missed CSS in the head as well:
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/bootstrap.css">
...I think that's it :)

@atmartins
Copy link

Corrected version: https://github.com/atmartins/angular-phonecat

@petebacondarwin
Copy link
Contributor

I have a fix for this in a PR to angular.js: angular/angular.js#4874
Once that is in, I have a fix that will fix up the index-async.html here too.

@petebacondarwin
Copy link
Contributor

This should be fixed now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants