To set up environment for Angular Development. We Need Some prerequisite. Let's go see.
1)First you install node js which provide you run time environment.
You can install latest version of node js from : https://nodejs.org/en/
Along with node it will install and configure Node package manager (npm) in your environment.
After installation process done you can verify by checking command :
node version: node -v
npm version :npm -v2)Install Angular cli(Command line interface)
This is just a command line interface provided by angular to create your code through your command prompt.
official link : https://cli.angular.io/
You can just run this command in cmd:
- npm install -g @angular/cli
- ng --version
You can use any IDE for development like sublime,VScode etc.
But i highly recommended to use Visual studio code :
Download link: https://code.visualstudio.com/
Well done all set Let's start development of Angular from create an first project.
So,let's get started to create New Project.
Create new project by this command
- ng new [projectname]
- Choose the routing and CSS or SCSS .It create an folder and required files set up the project with routing automatically .
- To run your you created project run command :
$ cd angular-example
$ ng serve
Comments
Post a Comment