ng serve port code example
Example 1: angular ng serve with custom port
ng serve --port 4401
Example 2: cancel ng server port
Using your terminal, find the PID of port 4200
netstat -ano | findstr :4200
Kill task by the PID Number (Replace 15940)
taskkill /PID 15940 /F
Example 3: angular serve open
ng serve -o
Example 4: make angular to run on a different port
"projects": {
"my-cool-project": {
... rest of project config omitted
"architect": {
"serve": {
"options": {
"port": 1337
}
}
}
}
}
Example 5: ng serve port command
ng serve --port 4401