how to change ng serve port code example
Example 1: angular ng serve with custom port
ng serve --port 4401
Example 2: angular cli change serve port
"projects": {
"my-cool-project": {
... rest of project config omitted
"architect": {
"serve": {
"options": {
"port": 1337
}
}
}
}
}