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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -