The most recent version of Angular is 4.0, this version onwards angular team suggests not to use version number while referring the framework.
Now Angular 2.0, Angular 3.0 and Angular 4.0 all are just Angular, since the recent versions are backward compatible.
The best way to start learning Angular is using Angular CLI. Below are the steps to install Angular CLI to create and run the Angular application.
- Install Node.js and npm if they are not already installed on your machine here.
- Run the below command to install Angular CLI globally.
npm install -g @angular/cli
- Now create a new project “testapp” by running the below command. This will take some time as all the node modules are loaded.
ng new testapp
- Switch to the new directory testapp. Run the application using below command. This will open a new browser window.
ng serve --open
Now if you see the text “app works!” at http://localhost:4200 in your browser window then your application is running.