wrong set base path debug angular 14

290 Views Asked by At

whne I run, I need to pass a base path like /pis/

ng serve  --serve-path /pis/

I do this but it doesn't load anything. Anyone can help me to put a base path in ng serve operation?

1

There are 1 best solutions below

3
Maher On

Did you mean --base-href?

Example usage:

ng serve --base-href /pis/

Edit:
From Angular Docs, see mention of --base-href here
And another option --baseHref here.