angularjs - Webapp not finding installed bower components -


i have jersey-quickstart-webapp developing in eclipse neon. trying bower , running, , have installed bower described eclipse here: https://www.eclipse.org/community/eclipse_newsletter/2016/may/article1.php

and shown in associated instruction video here: https://www.youtube.com/watch?v=pu8yownakk0

that is:

  1. i have installed node.js, npm, , bower

  2. ran bower init created bower.json file

  3. added angular dependency in bower.json

  4. ran bower install , installed angular

  5. updated index.html include bower_components version of angular

my bower.json file looks this:

{   "name": "pododdle",   "version": "0.0.0",   "license": "mit",   "ignore": [     "**/.*",     "node_modules",     "bower_components",     "test",     "tests"   ],   "dependencies": {     "angular": "1.5.3"   } } 

my bower_components directory has been installed in project following location containing angular.min.js file: bower_components/angular/angular.min.js

i have changed appropriate line in index.html from:

<script src="https://code.angularjs.org/1.5.3/angular.js"></script> 

to:

<script src="bower_components/angular/angular.min.js"></script> 

however, after web-app published server, when try , load application fails load in browser , in browser console displays 404 error angular.min.js file, pointing above src link in index.html:

http://localhost:8080/pododdle/bower_components/angular/angular.min.js (index):12  http://localhost:8080/pododdle/bower_components/angular/angular.min.js localhost/:12 

am missing step in bower installation? appreciated!

this problem similar question asked here: can't files installed bower work in eclipse

it solved opening: project -> properties - > deployment assembly.

there can see list of local resources deployed eclipse , destinations. if add "bower_components" folder there , set deploy path "/bower" able reference angularjs in index.html file following line:

<script src="bower/angular/angular.min.js"></script> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -