AngularJS


Angular Projects related Commands


  • Angular project creation

             ng new angular-app


  • When uploading a project to the GitHub, node modules will be removed. So once the project is cloned to another machine, node modules need to be installed. For that below commands will be used

                    npm install


  • To run the project

                    ng serve -o

                    (by default the port number is 4200)


  • To give a port number manually using the below command

                    ng serve - -port 4203 -o

Comments