How to add virtual directory to the default url of a project generated by angular-cli? -


in project generated angular-cli, if run:

ng serve -o 

the browser open tab link default:

http://localhost:4200 

i want add virtual directory url, this:

http://localhost:4200/companyname/product/web 

i know --host , --port option can change host , port of url, can't find option add virtual directory.

you can use --base-href or -bh flag that

ng serve --base-href /companyname/product/web -o 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -