ng serve project port 5000 code example
Example 1: how to assign port in angular
ng serve --port 4401
Example 2: make angular to run on a different port
"projects": {
"my-cool-project": {
... rest of project config omitted
"architect": {
"serve": {
"options": {
"port": 1337
}
}
}
}
}