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 



2. Create new project :

                    > ng new EMR
* It creates an application that already works. 
* Select no option for routing as we are going to learn that too .


3.  Check whether we are in project directory or not :
 
  * If we are in directory then go to next step if not then write below command :
                            > cd EMR


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

Popular posts from this blog

Day 3 : JavaScript

SQL Concepts-1

ASP .NET Session Management