First, we must set up a development environment before doing anything in AngulaJS.
Install Node.js® and npm if not already on your machine. After installing nodeJS run the following command or go to https://cli.angular.io/ for more details
npm install -g @angular/cli
ng new my-app
cd my-app
ng serve
You will see a successfully compiled message and open this link in your browser http://localhost:4200/. So that’s it you have set up your environment and your first app in Angular in running.