Juicy
Juicy

Reputation: 12520

App module not available, despite declaring it

I've used Angular in a project once before, but trying to get a quick little something set up again is giving me this:

Module 'app' is not available! You either misspelled the module name or forgot to load it.

As far as I can tell I've declared app properly in my app.js.

I made a little plunker for convenience: http://plnkr.co/edit/FWHQ5ZDAByOWsL9YeMUH?p=preview

Upvotes: 0

Views: 29

Answers (1)

Raphael
Raphael

Reputation: 1708

You miss the . on the source file:

Replace

`<script src='/app.js'></script>`

with

`<script src='./app.js'></script>`

Upvotes: 2

Related Questions