Angular - Prerequisites

Before starting with Angular lets briefly get to know what is a Angular.

What is Angular?

    Angular is a platform and a framework which can be used to create any single page web applications. It is a free and open source web-framework originally released by Google in 2010. An angular application is built with HTML and Typescripts.

    The initially developed Angular was built with JavaScript and HTML which was called AngularJS where the HTML is used for rendering the web-page and JavaScript is used for handling the data binding, variables and extending the HTML attributes as variable with JavaScript.

Angular2+ was developed as a complete rework of AngularJS by the same developers who developed AngularJS. Angular2+ uses HTML and TypeScript for the development. It uses components hierarchy as primary architecture. The latest version of Angular as of February,2023 is Angular 15.

Prerequisites

To start working with Angular the following are the prerequisites to be checked.

  • NodeJS
  • NPM
  • Angular CLI
  • Basic knowledge in HTML and TypeScript
NodeJS
    NodeJS is a free and open source platform which acts as JavaScript runtime environment. A web server retrieves a file on the file server and returns that to the client, this task is handled by NodeJS.
    It helps in managing the consequent request to the servers and retrieving them to the client.
    Click here to download and install NodeJS.
    Check if node is installed in the device by opening command prompt and run command node, you'll find the installed version of node.

NPM and Angular CLI
    NPM is the node package manager which provides all the dependencies required for JavaScript.
    To check if npm is installed run npm -v in command prompt.
    Install Angular CLI with the npm command npm install --global @angular/cli.
    To check if angular is installed in the system run the ng version command.

Miscellaneous
  • When you check you angular version and you find the following error, check the environment variables contains the npm.

        If the environment variables does not contain npm, follow the below steps and try again.

1. Open System Properties and in that window select Advanced->Environment variables

2. Edit Path Variable and add the npm file path in the system variable and the user variable.
The path for the npm will be something like this.
C:\Users\{user}\AppData\Roaming\npm


Penned by
Ramya Nandhini M

Comments

Popular posts from this blog

Docker with .NET 6.0 Web API

.NET Web API with Elastic Search and Kibana