Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modular dependency injection error? #97

Open
RubyRabelle opened this issue Jul 27, 2017 · 1 comment
Open

Modular dependency injection error? #97

RubyRabelle opened this issue Jul 27, 2017 · 1 comment

Comments

@RubyRabelle
Copy link

RubyRabelle commented Jul 27, 2017

Hi John,

I am relatively new to AngularJS, I have been reading your style guide and watching your videos hoping to set up a solid skeleton project to use on the front-end of a spring MVC app to demo for my team (and management) at work so that we can step into this century for front-end development. Unfortunately, as a state agency we are behind a pretty strict firewall, so NPM and the like are frowned upon. We are also developing in a windows environment with an Apache Tomcat server on our local.

As a work-around to running the CLI, I manually copied down your Modular app, in hopes of using it as model. But I am getting an [$injector:modulerr] right off the bat.
image

Being new to AngularJS, I'm not really sure where to go with this error message.
I tried adjusting the dependency injections on avengers.js, but that didn't help.
I don't know if this is because I'm using AngularJS 1.6.5? Because some of the build scripts (grunt/gulp?) may not be available without npm/node. Or do we just need to go back to writing .jsps?

Any suggestions would be appreciated. Thanks!

@nickstaggs
Copy link

Good morning @RubyRabelle ,

Unfortunately, without npm/bower you will more than likely be missing a number of dependencies. This particular error I believe is saying that the router is missing, as it is a separate module. If you would please check the section in the index page, ng-demos/modular/src/client/index.html, under the comment and ensure that all of the bower components are available to the project. Also as a side note if you are looking to mate spring and angular, you should checkout the JHipster project.

Hope this helps!

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

No branches or pull requests

2 participants