javascript - Change The context path for angular in angular-cli -


when generate dist directory angular cli need put in root directory of server example:

localhost:8080/

for run correctly angular 2 app

but if want put in other directory how example:

localhost:8080/dist got error in js files because app find in / root rute

any ideas how change contexto path??

thanks

in angular 2 app not working on apache http server supergirl recommend change base ref in index.html , yes works

 <base href="./"> 

update : problem resolve bug in path large produce same error 404 in refresh page


Comments