Angular setup in local Environment .
25/08/2020
For the installation of Angular on your local system,you need the following:
Node.js installation
Angular requires a current and active version of Node.js.
For more information on installing Node.js, you can see nodejs.org. If you are not sure what version of Node.js runs on your system, run "node ---version" or simply "node -v" in a terminal window.
npm package manager
Angular, the Angular CLI, and Angular applications depend on npm packages for many excellent features and functions. To download and install npm packages, you need an node package manager. It uses the npm client command line interface, which is installed with Node.js by default. To check that you have the npm client installed, run "npm -v" in a terminal window.
Don't forget to confirm the installation by checking the version with command line interface : npm --version
Install the Angular CLI
Angular CLI is used to create web based high scale projects, generate application and library code, and perform a variety of ongoing development tasks like bundling,testing and deployment of web app.
img source: https://www.tecmint.com/wp-content/uploads/2019/07/Install-Angular-CLI-in-Linux.png
The first command npm install -g @angular/cli installs the latest version of angular globally.
Check whether angular is installed or not with the command :
ng --version
The second command ng new my-dream-app creates new project named my-dream-app
cd my-dream-app helps to change the directory to the project folder.
After that we can serve the project with command line : ng serve -o i.e. Here -o helps to open the project in the default browser automatically.
Just give it a try.