Changing default serving port in Angular

You can change your application port by entering the following command,

ng serve –port 1453

Also, you can change the port by editing anglular-cli.json file:

“defaults”: {
   “serve”: {
      “host”: “localhost”,
      “port”: 1453
   }
}
You can see, serve options in this link.
Advertisements
By eneskoroglu Posted in Angular

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s