So I have an existing angular app which routes/imports (eg:
src) from the root path only (ie:
/). So the app loads up at
http://localhost:8080/ and and the base url is
/. I want to change it to be
http://localhost:8080/myapp/ so all links will then prefixed with /myapp.
I tried updating this code here from (it's in a Java jsp called app.jps):
<base href="/" />
<base href="/myapp" />
But this did nothing, I still get errors like this (and others like it):
angular.js:11630 GET http://localhost:8080/angularapp/home/home.html?version=4 404 ()
There are many other errors like this, and the page is just blank (white) so far. Do I have to go and piecemeal edit all these urls to include
/myapp in front of it? OR is there a better way?
Template Urls look like this (in app.module.js):
templateUrl: '/angularapp/home/home.html?version=' + window.version,