setting up port using command line angular 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
}
}
}
}
}