Day 12 : Installation of Angular
Now we are going to see the installation of angular......
Angular is a front-end framework which is used to create a web applications. Angular has TypeScript by default or it supports TypeScript for creating functions in class.
The TypeScript not knows the browser so we need webpack. Webpack is used to compile TypeScript files into the JavaScript files. So that we can run the JavaScript file on browser.
Now you know what is Webpack??
Webpack is an open source JavaScript module. Its purpose is to take all our code from application and makes it usable in browser. Angular uses webpack behind the screen.
Angular CLI :
Angular CLI is a command line interface tool that we use to initialize, develop, maintain angular applications. Angular CLI is used to write or easily build a angular application.
Steps to create a first angular application :
- Firstly make sure that you have installed node and npm in your system. You can check the versions of node and npm by using following commands :
> node --version
> npm --version
1. Install angular cli :
> npm install -g @angular/cli
- We can check version for seeing it is installed properly or not :
> ng version
4. Run server :
> ng serve
- We can see the project is working or not on browser by entering the localhost address in the chrome.
- The localhost address is shown at end of compiling.
- The directories and files in projects we are going to see in next blog...
- For any error or question comment below...
For more understanding watch below video :
Thank You!!!
Comments
Post a Comment