Angular 9 Notes

Angular 4/5/6/7 Notes

1. How to run angular application with different configurations ?

To run different configuration with ng serve then run the below command,

ng serve --configuration=local

which will basically looks for the configuration files with local and picks that file configuration for this ng serve.

2. How to build angular universal ?

After configuring your angular 7 application to seo specific using angular universal run the below command to build angular universal configured project,

npm run build:prod

3. How to run angular universal ?

npm run start

4. How to run angular application in different port than 4200(default port) ?

ng serve --port=4300

this will run the application in port 4300, instead of the default port 4200.

5. How to check your angular application’s version ?

Go to your angular application’s directory and run this command,

ng version

You will be able to see the result like this,

Highlighted version is your angular project version, Angular CLI version is the angular version installed on your computer.

Leave a Reply