|
|
|
|
|
|
|
|
# How to start Angular |
|
|
# How to start Angular |
|
|
1. open command Window and change directory to Project Path |
|
|
1. open command Window and change directory to Project Path |
|
|
|
|
|
|
|
|
2. run "npm install" for installing all Project Dependencies |
|
|
|
|
|
(all Dependencies inclusive node.js will be installed) |
|
|
|
|
|
|
|
|
2. Run `npm install` for installing all Project Dependencies <br> |
|
|
|
|
|
(all Dependencies inclusive node.js will be installed, generally you could use `npm` and `yarn`, but never use both at the same time for managing the dependencies. This could cause problems.) |
|
|
|
|
|
|
|
|
3. run "ng serve" for compiling and starting of the angular dev server <br> |
|
|
|
|
|
|
|
|
3. Run `ng serve` for compiling and starting of the angular dev server <br> |
|
|
(If the port ::4200 is already in use, the ng serve will abort with a exception |
|
|
(If the port ::4200 is already in use, the ng serve will abort with a exception |
|
|
"An unhandled exception occurred: Port 4200 is already in use. Use '--port' to specify a different port.") |
|
|
"An unhandled exception occurred: Port 4200 is already in use. Use '--port' to specify a different port.") |
|
|
|
|
|
|
|
|
4. If the compiling was successful you could navigate to 'http://localhost:4200/' <br> |
|
|
|
|
|
|
|
|
4. Navigate to 'http://localhost:4200/' after successful compiling <br> |
|
|
(** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** |
|
|
(** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** |
|
|
: Compiled successfully.) |
|
|
: Compiled successfully.) |
|
|
4. Stopping the Angular dev server with 'Ctrl + C' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4. Run `Ctrl + C` to stop Angular dev server. |
|
|
|
|
|
|
|
|
## Development server |
|
|
## Development server |
|
|
|
|
|
|